mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
ee10b13a44
commit
e2e777b0e7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user