summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectSettings.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-08 22:55:31 +0000
committerChris Lattner <sabre@nondot.org>2010-09-08 22:55:31 +0000
commit37c1b43144d747c7c61257451c714f2b6a49b092 (patch)
tree35aa062013573d2cf93f7cb165b58345e9d5ce9b /lldb/source/Commands/CommandObjectSettings.cpp
parent30ee4ef3089c97061a2b8d5fc1e0a369682d2a27 (diff)
downloadbcm5719-llvm-37c1b43144d747c7c61257451c714f2b6a49b092.tar.gz
bcm5719-llvm-37c1b43144d747c7c61257451c714f2b6a49b092.zip
fix a bunch of signed/unsigned comparison warnings, stop evaluating "getsize" every time through the loop.
llvm-svn: 113433
Diffstat (limited to 'lldb/source/Commands/CommandObjectSettings.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectSettings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectSettings.cpp b/lldb/source/Commands/CommandObjectSettings.cpp
index 62657bed2d0..33af62f66ee 100644
--- a/lldb/source/Commands/CommandObjectSettings.cpp
+++ b/lldb/source/Commands/CommandObjectSettings.cpp
@@ -308,7 +308,7 @@ CommandObjectSettingsShow::Execute (CommandInterpreter &interpreter,
else
{
result.AppendMessageWithFormat ("%s%s:\n", variable_name, type_name);
- for (int i = 0; i < value.GetSize(); ++i)
+ for (unsigned i = 0, e = value.GetSize(); i != e; ++i)
{
result.AppendMessageWithFormat (" [%d]: '%s'\n", i, value.GetStringAtIndex (i));
}
OpenPOWER on IntegriCloud