From: Aaron Ballman Date: Wed, 22 Oct 2014 13:09:43 +0000 (+0000) Subject: Fixing a -Wsign-compare warning; NFC. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=df8b8e7f691c055c9c9b85677cbae6eaa1aaf2e0;p=oota-llvm.git 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 --- diff --git a/tools/yaml2obj/yaml2coff.cpp b/tools/yaml2obj/yaml2coff.cpp index 95cf8f0301e..5edce17f81a 100644 --- a/tools/yaml2obj/yaml2coff.cpp +++ b/tools/yaml2obj/yaml2coff.cpp @@ -37,7 +37,8 @@ struct COFFParser { } bool useBigObj() const { - return Obj.Sections.size() > COFF::MaxNumberOfSections16; + return static_cast(Obj.Sections.size()) > + COFF::MaxNumberOfSections16; } unsigned getHeaderSize() const {