[Lldb-commits] [lldb] r266197 - Match types in for loop to fix signedness comparison warning
Ed Maste via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 13 06:32:06 PDT 2016
Author: emaste
Date: Wed Apr 13 08:32:06 2016
New Revision: 266197
URL: http://llvm.org/viewvc/llvm-project?rev=266197&view=rev
Log:
Match types in for loop to fix signedness comparison warning
Modified:
lldb/trunk/source/Symbol/Symtab.cpp
Modified: lldb/trunk/source/Symbol/Symtab.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/Symtab.cpp?rev=266197&r1=266196&r2=266197&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/Symtab.cpp (original)
+++ lldb/trunk/source/Symbol/Symtab.cpp Wed Apr 13 08:32:06 2016
@@ -969,7 +969,7 @@ Symtab::InitAddressIndexes()
// entries that didn't already have a size from the Symbol (e.g. if we
// have a plain linker symbol with an address only, instead of debug info
// where we get an address and a size and a type, etc.)
- for (int i = 0; i < num_entries; i++)
+ for (size_t i = 0; i < num_entries; i++)
{
FileRangeToIndexMap::Entry *entry = m_file_addr_to_index.GetMutableEntryAtIndex (i);
if (entry->GetByteSize() == 0)
@@ -986,7 +986,7 @@ Symtab::InitAddressIndexes()
(entry->GetRangeBase() - containing_section->GetRangeBase());
}
- for (int j = i; j < num_entries; j++)
+ for (size_t j = i; j < num_entries; j++)
{
FileRangeToIndexMap::Entry *next_entry = m_file_addr_to_index.GetMutableEntryAtIndex (j);
addr_t next_base_addr = next_entry->GetRangeBase();
More information about the lldb-commits
mailing list