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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220384 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Aaron Ballman 2014-10-22 13:09:43 +00:00
parent 418d0cf1c1
commit df8b8e7f69

View File

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