Author: Adrian Prantl
Date: 2024-12-10T17:01:51-08:00
New Revision: 1593f36935edc97bede71bd1d722edf83eaf16a4

URL: 
https://github.com/llvm/llvm-project/commit/1593f36935edc97bede71bd1d722edf83eaf16a4
DIFF: 
https://github.com/llvm/llvm-project/commit/1593f36935edc97bede71bd1d722edf83eaf16a4.diff

LOG: [lldb] Add explicit type conversion

Added: 
    

Modified: 
    lldb/source/DataFormatters/FormatterBytecode.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/DataFormatters/FormatterBytecode.cpp 
b/lldb/source/DataFormatters/FormatterBytecode.cpp
index 21e90e75202f68..a8975494b83670 100644
--- a/lldb/source/DataFormatters/FormatterBytecode.cpp
+++ b/lldb/source/DataFormatters/FormatterBytecode.cpp
@@ -339,7 +339,7 @@ llvm::Error Interpret(std::vector<ControlStackElement> 
&control,
     }
     case op_is_null: {
       TYPE_CHECK(Object);
-      data.Push(data.Pop<ValueObjectSP>() ? 0ULL : 1ULL);
+      data.Push(data.Pop<ValueObjectSP>() ? (uint64_t)0 : (uint64_t)1);
       continue;
     }
 


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to