[llvm] r337490 - Fix -Wsign-compare in llvm-readobj
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 19 12:58:22 PDT 2018
Author: rnk
Date: Thu Jul 19 12:58:22 2018
New Revision: 337490
URL: http://llvm.org/viewvc/llvm-project?rev=337490&view=rev
Log:
Fix -Wsign-compare in llvm-readobj
Modified:
llvm/trunk/tools/llvm-readobj/ObjDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/ObjDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ObjDumper.cpp?rev=337490&r1=337489&r2=337490&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ObjDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ObjDumper.cpp Thu Jul 19 12:58:22 2018
@@ -37,7 +37,7 @@ getSecNameOrIndexAsSecRef(const object::
char *StrPtr;
long SectionIndex = strtol(SecName.data(), &StrPtr, 10);
object::SectionRef Section;
- unsigned SecIndex = 0;
+ long SecIndex = 0;
for (object::SectionRef SecRef : Obj->sections()) {
if (*StrPtr) {
StringRef SectionName;
More information about the llvm-commits
mailing list