[Lldb-commits] [lldb] r345755 - [NFC] Fixed -Wsign-compare warning

David Bolvansky via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 31 11:03:36 PDT 2018


Author: xbolva00
Date: Wed Oct 31 11:03:36 2018
New Revision: 345755

URL: http://llvm.org/viewvc/llvm-project?rev=345755&view=rev
Log:
[NFC] Fixed -Wsign-compare warning

Modified:
    lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

Modified: lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp?rev=345755&r1=345754&r2=345755&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp (original)
+++ lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp Wed Oct 31 11:03:36 2018
@@ -1547,7 +1547,7 @@ lldb::ValueObjectListSP ScriptInterprete
   if (py_return.get()) {
     PythonList result_list(PyRefType::Borrowed, py_return.get());
     ValueObjectListSP result = ValueObjectListSP(new ValueObjectList());
-    for (int i = 0; i < result_list.GetSize(); i++) {
+    for (size_t i = 0; i < result_list.GetSize(); i++) {
       PyObject *item = result_list.GetItemAtIndex(i).get();
       lldb::SBValue *sb_value_ptr =
           (lldb::SBValue *)g_swig_cast_to_sbvalue(item);




More information about the lldb-commits mailing list