[Lldb-commits] [lldb] r130790 - /lldb/trunk/source/Core/EmulateInstruction.cpp

Caroline Tice ctice at apple.com
Tue May 3 13:58:12 PDT 2011


Author: ctice
Date: Tue May  3 15:58:11 2011
New Revision: 130790

URL: http://llvm.org/viewvc/llvm-project?rev=130790&view=rev
Log:

Remove type cast that was causing compiler warning.


Modified:
    lldb/trunk/source/Core/EmulateInstruction.cpp

Modified: lldb/trunk/source/Core/EmulateInstruction.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/EmulateInstruction.cpp?rev=130790&r1=130789&r2=130790&view=diff
==============================================================================
--- lldb/trunk/source/Core/EmulateInstruction.cpp (original)
+++ lldb/trunk/source/Core/EmulateInstruction.cpp Tue May  3 15:58:11 2011
@@ -305,7 +305,7 @@
                                        void *dst,
                                        size_t length)
 {
-    fprintf (stdout, "    Read from Memory (address = 0x%llx, length = %zu, context = ", addr, (uint32_t) length);
+    fprintf (stdout, "    Read from Memory (address = 0x%llx, length = %zu, context = ", addr, length);
     context.Dump (stdout, instruction);    
     *((uint64_t *) dst) = 0xdeadbeef;
     return length;
@@ -319,7 +319,7 @@
                                         const void *dst,
                                         size_t length)
 {
-    fprintf (stdout, "    Write to Memory (address = 0x%llx, length = %zu, context = ", addr, (uint32_t) length);
+    fprintf (stdout, "    Write to Memory (address = 0x%llx, length = %zu, context = ", addr, length);
     context.Dump (stdout, instruction);    
     return length;
 }





More information about the lldb-commits mailing list