Author: uweigand Date: Fri Apr 15 04:15:47 2016 New Revision: 266420 URL: http://llvm.org/viewvc/llvm-project?rev=266420&view=rev Log: Make Scalar::SChar return an explicit signed type
This is needed for platforms where the default "char" type is unsigned. Originally committed as part of (now reverted) r266311. Modified: lldb/trunk/include/lldb/Core/Scalar.h lldb/trunk/source/Core/Scalar.cpp Modified: lldb/trunk/include/lldb/Core/Scalar.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/Scalar.h?rev=266420&r1=266419&r2=266420&view=diff ============================================================================== --- lldb/trunk/include/lldb/Core/Scalar.h (original) +++ lldb/trunk/include/lldb/Core/Scalar.h Fri Apr 15 04:15:47 2016 @@ -254,7 +254,7 @@ public: unsigned char UChar(unsigned char fail_value = 0) const; - char + signed char SChar(char fail_value = 0) const; unsigned short Modified: lldb/trunk/source/Core/Scalar.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Scalar.cpp?rev=266420&r1=266419&r2=266420&view=diff ============================================================================== --- lldb/trunk/source/Core/Scalar.cpp (original) +++ lldb/trunk/source/Core/Scalar.cpp Fri Apr 15 04:15:47 2016 @@ -1380,7 +1380,7 @@ Scalar::MakeSigned () return success; } -char +signed char Scalar::SChar(char fail_value) const { switch (m_type) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits