Workaround g++ 4.2.1 warning diagnostic false positive.
authorJim Grosbach <grosbach@apple.com>
Fri, 8 Apr 2011 21:11:20 +0000 (21:11 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 8 Apr 2011 21:11:20 +0000 (21:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129149 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp

index 9cbaaa19f846294b69a76b924a58774943d9bda2..3c3030731e02fbe5a8f805d078417619ae5a2126 100644 (file)
@@ -296,7 +296,7 @@ loadSegment32(const MachOObject *Obj,
         return Error("invalid section index for symbol: '" + Twine() + "'");
 
       // Just skip symbols not defined in this section.
-      if (STE->SectionIndex - 1 != SectNum)
+      if ((unsigned)STE->SectionIndex - 1 != SectNum)
         continue;
 
       // Get the symbol name.
@@ -375,7 +375,7 @@ loadSegment64(const MachOObject *Obj,
         return Error("invalid section index for symbol: '" + Twine() + "'");
 
       // Just skip symbols not defined in this section.
-      if (STE->SectionIndex - 1 != SectNum)
+      if ((unsigned)STE->SectionIndex - 1 != SectNum)
         continue;
 
       // Get the symbol name.