Workaround g++ 4.2.1 warning diagnostic false positive.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129149 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2011-04-08 21:11:20 +00:00
parent ee10b13a44
commit e2e777b0e7

View 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.