summaryrefslogtreecommitdiffstats
path: root/lldb/source/DataFormatters/StringPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/DataFormatters/StringPrinter.cpp')
-rw-r--r--lldb/source/DataFormatters/StringPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/DataFormatters/StringPrinter.cpp b/lldb/source/DataFormatters/StringPrinter.cpp
index 571ef2f46bf..3af5931ad71 100644
--- a/lldb/source/DataFormatters/StringPrinter.cpp
+++ b/lldb/source/DataFormatters/StringPrinter.cpp
@@ -408,7 +408,7 @@ DumpUTFBufferToStream (ConversionResult (*ConvertFunction) (const SourceDataType
printable_size = 1;
next_data = utf8_data_ptr+1;
}
- for (int c = 0; c < printable_size; c++)
+ for (unsigned c = 0; c < printable_size; c++)
stream.Printf("%c", *(printable_bytes+c));
utf8_data_ptr = (uint8_t*)next_data;
}
@@ -500,7 +500,7 @@ ReadStringAndDumpToStream<StringElementType::ASCII> (ReadStringAndDumpToStreamOp
printable_size = 1;
next_data = data+1;
}
- for (int c = 0; c < printable_size; c++)
+ for (unsigned c = 0; c < printable_size; c++)
options.GetStream()->Printf("%c", *(printable_bytes+c));
data = (uint8_t*)next_data;
}
OpenPOWER on IntegriCloud