summaryrefslogtreecommitdiffstats
path: root/lldb/source/DataFormatters/CF.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-04-02 03:51:35 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-04-02 03:51:35 +0000
commit3985c8c64680d89a3ab328347e795af0c69c48ea (patch)
tree79b033e897a72dfd79894bf9fea2481042976232 /lldb/source/DataFormatters/CF.cpp
parentf7da6c1fcf5d0968b473226df0ec7493d61f2711 (diff)
downloadbcm5719-llvm-3985c8c64680d89a3ab328347e795af0c69c48ea.tar.gz
bcm5719-llvm-3985c8c64680d89a3ab328347e795af0c69c48ea.zip
sanitise sign comparisons
This is a mechanical change addressing the various sign comparison warnings that are identified by both clang and gcc. This helps cleanup some of the warning spew that occurs during builds. llvm-svn: 205390
Diffstat (limited to 'lldb/source/DataFormatters/CF.cpp')
-rw-r--r--lldb/source/DataFormatters/CF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/CF.cpp b/lldb/source/DataFormatters/CF.cpp
index a4b7a1235ff..342ced78eff 100644
--- a/lldb/source/DataFormatters/CF.cpp
+++ b/lldb/source/DataFormatters/CF.cpp
@@ -160,7 +160,7 @@ lldb_private::formatters::CFBitVectorSummaryProvider (ValueObject& valobj, Strea
if (error.Fail() || num_bytes == 0)
return false;
uint8_t *bytes = buffer_sp->GetBytes();
- for (int byte_idx = 0; byte_idx < num_bytes-1; byte_idx++)
+ for (uint64_t byte_idx = 0; byte_idx < num_bytes-1; byte_idx++)
{
uint8_t byte = bytes[byte_idx];
bool bit0 = (byte & 1) == 1;
OpenPOWER on IntegriCloud