Fixed handling of signed short types in expressions.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@115267 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpressionVariable.cpp b/source/Expression/ClangExpressionVariable.cpp
index f406583..0ae37e4 100644
--- a/source/Expression/ClangExpressionVariable.cpp
+++ b/source/Expression/ClangExpressionVariable.cpp
@@ -51,7 +51,7 @@
     Error err;
     
     Value val;
-    if (!PointValueAtData (val, &exe_ctx))
+    if (!PointValueAtData (val, NULL))
     {
         err.SetErrorToGenericError();
         err.SetErrorStringWithFormat("Variable doesn't contain a value");
diff --git a/source/Symbol/ClangASTType.cpp b/source/Symbol/ClangASTType.cpp
index cccec2a..acfdc40 100644
--- a/source/Symbol/ClangASTType.cpp
+++ b/source/Symbol/ClangASTType.cpp
@@ -975,7 +975,7 @@
         case lldb::eEncodingSint:
             if (byte_size <= sizeof(long long))
             {
-                int64_t sval64 = (int64_t)data.GetMaxU64 (&offset, byte_size);
+                int64_t sval64 = data.GetMaxS64 (&offset, byte_size);
                 if (byte_size <= sizeof(int))
                 {
                     value = (int)sval64;