mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
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:
parent
418d0cf1c1
commit
df8b8e7f69
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user