diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMultiword.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp index d2e281197da..aa3a8ebe367 100644 --- a/lldb/source/Commands/CommandObjectMultiword.cpp +++ b/lldb/source/Commands/CommandObjectMultiword.cpp @@ -143,7 +143,7 @@ CommandObjectMultiword::Execute(const char *args_string, CommandReturnObject &re else { std::string error_msg; - int num_subcmd_matches = matches.GetSize(); + const size_t num_subcmd_matches = matches.GetSize(); if (num_subcmd_matches > 0) error_msg.assign ("ambiguous command "); else @@ -158,14 +158,14 @@ CommandObjectMultiword::Execute(const char *args_string, CommandReturnObject &re if (num_subcmd_matches > 0) { error_msg.append (" Possible completions:"); - for (int i = 0; i < num_subcmd_matches; i++) + for (size_t i = 0; i < num_subcmd_matches; i++) { error_msg.append ("\n\t"); error_msg.append (matches.GetStringAtIndex (i)); } } error_msg.append ("\n"); - result.AppendRawError (error_msg.c_str(), error_msg.size()); + result.AppendRawError (error_msg.c_str()); result.SetStatus (eReturnStatusFailed); } } |