summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-10-05 17:07:34 +0000
committerZachary Turner <zturner@google.com>2016-10-05 17:07:34 +0000
commit5a8ad4591bb688760c018b4f2e3ec51b3bb3c783 (patch)
tree31b2c619792632567e165cf0d45e710f350c9fce /lldb/source/Interpreter/CommandInterpreter.cpp
parentd6ef28462bd17c39edef192a1298060910b0e15b (diff)
downloadbcm5719-llvm-5a8ad4591bb688760c018b4f2e3ec51b3bb3c783.tar.gz
bcm5719-llvm-5a8ad4591bb688760c018b4f2e3ec51b3bb3c783.zip
Make lldb -Werror clean on Windows.
Differential Revision: https://reviews.llvm.org/D25247 llvm-svn: 283344
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index a3f0d4f96d7..bdab6eca30a 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -2597,7 +2597,8 @@ void CommandInterpreter::OutputHelpText(Stream &strm, const char *word_text,
for (uint32_t i = 0; i < len; i++) {
if ((text[i] == ' ' && ::strchr((text + i + 1), ' ') &&
- chars_left < ::strchr((text + i + 1), ' ') - (text + i)) ||
+ chars_left < static_cast<uint32_t>(::strchr((text + i + 1), ' ') -
+ (text + i))) ||
text[i] == '\n') {
chars_left = max_columns - indent_size;
strm.EOL();
OpenPOWER on IntegriCloud