fix a bunch of signed/unsigned comparison warnings, stop evaluating "getsize" every time through the loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113433 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectSettings.cpp b/source/Commands/CommandObjectSettings.cpp
index 62657be..33af62f 100644
--- a/source/Commands/CommandObjectSettings.cpp
+++ b/source/Commands/CommandObjectSettings.cpp
@@ -308,7 +308,7 @@
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));
}