Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit a34dfe6

Browse files
committed
Fix -Wsign-compare in llvm-readobj
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337490 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent b2f9f92 commit a34dfe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/llvm-readobj/ObjDumper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ getSecNameOrIndexAsSecRef(const object::ObjectFile *Obj, StringRef SecName) {
3737
char *StrPtr;
3838
long SectionIndex = strtol(SecName.data(), &StrPtr, 10);
3939
object::SectionRef Section;
40-
unsigned SecIndex = 0;
40+
long SecIndex = 0;
4141
for (object::SectionRef SecRef : Obj->sections()) {
4242
if (*StrPtr) {
4343
StringRef SectionName;

0 commit comments

Comments
 (0)