[Lldb-commits] [lldb] r236295 - Fixed some compiler warnings because of bit-width

Sean Callanan scallanan at apple.com
Thu Apr 30 17:44:37 PDT 2015


Author: spyffe
Date: Thu Apr 30 19:44:36 2015
New Revision: 236295

URL: http://llvm.org/viewvc/llvm-project?rev=236295&view=rev
Log:
Fixed some compiler warnings because of bit-width
mismatches.

Modified:
    lldb/trunk/source/Host/common/NativeRegisterContext.cpp

Modified: lldb/trunk/source/Host/common/NativeRegisterContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/NativeRegisterContext.cpp?rev=236295&r1=236294&r2=236295&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/NativeRegisterContext.cpp (original)
+++ lldb/trunk/source/Host/common/NativeRegisterContext.cpp Thu Apr 30 19:44:36 2015
@@ -375,7 +375,7 @@ NativeRegisterContext::ReadRegisterValue
 
     if (src_len > dst_len)
     {
-        error.SetErrorStringWithFormat("%" PRIu64 " bytes is too big to store in register %s (%" PRIu64 " bytes)", src_len, reg_info->name, dst_len);
+        error.SetErrorStringWithFormat("%" PRIu64 " bytes is too big to store in register %s (%" PRIu64 " bytes)", (unsigned long long)src_len, reg_info->name, (unsigned long long)dst_len);
         return error;
     }
 
@@ -398,7 +398,7 @@ NativeRegisterContext::ReadRegisterValue
     if (bytes_read != src_len)
     {
         // This might happen if we read _some_ bytes but not all
-        error.SetErrorStringWithFormat("read %" PRIu64 " of %" PRIu64 " bytes", bytes_read, src_len);
+        error.SetErrorStringWithFormat("read %" PRIu64 " of %" PRIu64 " bytes", (unsigned long long)bytes_read, (unsigned long long)src_len);
         return error;
     }
 
@@ -470,7 +470,7 @@ NativeRegisterContext::WriteRegisterValu
                 if (bytes_written != bytes_copied)
                 {
                     // This might happen if we read _some_ bytes but not all
-                    error.SetErrorStringWithFormat("only wrote %" PRIu64 " of %" PRIu64 " bytes", bytes_written, bytes_copied);
+                    error.SetErrorStringWithFormat("only wrote %" PRIu64 " of %" PRIu64 " bytes", (unsigned long long)bytes_written, (unsigned long long)bytes_copied);
                 }
             }
         }





More information about the lldb-commits mailing list