diff options
author | Greg Clayton <gclayton@apple.com> | 2011-10-26 21:01:16 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-10-26 21:01:16 +0000 |
commit | 63f8cc6acaee2edbc49a2ff1aa7c5a09b3585d39 (patch) | |
tree | e288097217d8303cf19878459ed44f9b4d55cc97 /lldb/source/Core/DataExtractor.cpp | |
parent | c47e28343041d9cbe421ad814181e9f3db756dac (diff) | |
download | bcm5719-llvm-63f8cc6acaee2edbc49a2ff1aa7c5a09b3585d39.tar.gz bcm5719-llvm-63f8cc6acaee2edbc49a2ff1aa7c5a09b3585d39.zip |
Fixed the display of OSTypes (the four character codes).
llvm-svn: 143056
Diffstat (limited to 'lldb/source/Core/DataExtractor.cpp')
-rw-r--r-- | lldb/source/Core/DataExtractor.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/source/Core/DataExtractor.cpp b/lldb/source/Core/DataExtractor.cpp index c0f6dff5ef9..6dccc42c990 100644 --- a/lldb/source/Core/DataExtractor.cpp +++ b/lldb/source/Core/DataExtractor.cpp @@ -1481,11 +1481,7 @@ DataExtractor::Dump 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 |