[Lldb-commits] [lldb] r143056 - /lldb/trunk/source/Core/DataExtractor.cpp

Greg Clayton gclayton at apple.com
Wed Oct 26 14:01:16 PDT 2011


Author: gclayton
Date: Wed Oct 26 16:01:16 2011
New Revision: 143056

URL: http://llvm.org/viewvc/llvm-project?rev=143056&view=rev
Log:
Fixed the display of OSTypes (the four character codes).


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

Modified: lldb/trunk/source/Core/DataExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/DataExtractor.cpp?rev=143056&r1=143055&r2=143056&view=diff
==============================================================================
--- lldb/trunk/source/Core/DataExtractor.cpp (original)
+++ lldb/trunk/source/Core/DataExtractor.cpp Wed Oct 26 16:01:16 2011
@@ -1481,11 +1481,7 @@
                 s->PutChar('\'');
                 for (i=0; i<item_byte_size; ++i)
                 {
-                    uint8_t ch;
-                    if (i > 0)
-                        ch = (uint8_t)(uval64 >> ((item_byte_size - i - 1) * 8));
-                    else
-                        ch = (uint8_t)uval64;
+                    uint8_t ch = (uint8_t)(uval64 >> ((item_byte_size - i - 1) * 8));
                     if (isprint(ch))
                         s->Printf ("%c", ch);
                     else





More information about the lldb-commits mailing list