diff options
| author | Ed Maste <emaste@freebsd.org> | 2016-04-13 13:32:06 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@freebsd.org> | 2016-04-13 13:32:06 +0000 |
| commit | 11c0b227f5babf37560c0d89538767f985a3f3ee (patch) | |
| tree | a19a2499e19baaaba35e801329ac4585ea630cc9 /lldb/source/Symbol/Symtab.cpp | |
| parent | b0743fb2e953a7fac129bc559a3b3747fdd7a66f (diff) | |
| download | bcm5719-llvm-11c0b227f5babf37560c0d89538767f985a3f3ee.tar.gz bcm5719-llvm-11c0b227f5babf37560c0d89538767f985a3f3ee.zip | |
Match types in for loop to fix signedness comparison warning
llvm-svn: 266197
Diffstat (limited to 'lldb/source/Symbol/Symtab.cpp')
| -rw-r--r-- | lldb/source/Symbol/Symtab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Symbol/Symtab.cpp b/lldb/source/Symbol/Symtab.cpp index ea8d9bd54b5..58d8fb8d931 100644 --- a/lldb/source/Symbol/Symtab.cpp +++ b/lldb/source/Symbol/Symtab.cpp @@ -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(); |

