Fixing a -Wsign-compare warning; NFC.

I think it might make sense to make COFF::MaxNumberOfSections16 be a uint32_t, however, that may have wider-reaching implications in other projects, which is why I did not change that declaration.

llvm-svn: 220384
This commit is contained in:
Aaron Ballman 2014-10-22 13:09:43 +00:00
parent 795f53ba64
commit 4934e4b598
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@ struct COFFParser {
}
bool useBigObj() const {
return Obj.Sections.size() > COFF::MaxNumberOfSections16;
return static_cast<int32_t>(Obj.Sections.size()) >
COFF::MaxNumberOfSections16;
}
unsigned getHeaderSize() const {