From 9a0fdfe0099be4651803c285e6da7b8f1a7e63cf Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 15 Apr 2016 09:15:47 +0000 Subject: [PATCH] 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. llvm-svn: 266420 --- lldb/include/lldb/Core/Scalar.h | 2 +- lldb/source/Core/Scalar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/include/lldb/Core/Scalar.h b/lldb/include/lldb/Core/Scalar.h index db103ffc9850..5dbe6599b70a 100644 --- a/lldb/include/lldb/Core/Scalar.h +++ b/lldb/include/lldb/Core/Scalar.h @@ -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 diff --git a/lldb/source/Core/Scalar.cpp b/lldb/source/Core/Scalar.cpp index 5677464744c8..78c16335885f 100644 --- a/lldb/source/Core/Scalar.cpp +++ b/lldb/source/Core/Scalar.cpp @@ -1380,7 +1380,7 @@ Scalar::MakeSigned () return success; } -char +signed char Scalar::SChar(char fail_value) const { switch (m_type)