From df8b8e7f691c055c9c9b85677cbae6eaa1aaf2e0 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 22 Oct 2014 13:09:43 +0000 Subject: [PATCH] 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 --- tools/yaml2obj/yaml2coff.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.34.1