Silence a -Wsign-compare warning. NFC.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 28 Aug 2014 13:23:26 +0000 (13:23 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 28 Aug 2014 13:23:26 +0000 (13:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216666 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/WinCOFFObjectWriter.cpp

index 2de65c798be1ac7d7ea1723dfe2d27e7942b55dd..489c92675f693c088604296039b06e2dc9c16572 100644 (file)
@@ -849,7 +849,7 @@ void WinCOFFObjectWriter::WriteObject(MCAssembler &Asm,
     MakeSectionReal(*Section, Number);
   }
 
-  if (NumberOfSections > COFF::MaxNumberOfSections)
+  if (NumberOfSections > static_cast<size_t>(COFF::MaxNumberOfSections))
     report_fatal_error(
         "PE COFF object files can't have more than 65,299 sections");