From 6948f9e09c683a25f0ed6e0c3bd068493db5ddff Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 28 Aug 2014 13:23:26 +0000 Subject: [PATCH] Silence a -Wsign-compare warning. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216666 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/WinCOFFObjectWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MC/WinCOFFObjectWriter.cpp b/lib/MC/WinCOFFObjectWriter.cpp index 2de65c798be..489c92675f6 100644 --- a/lib/MC/WinCOFFObjectWriter.cpp +++ b/lib/MC/WinCOFFObjectWriter.cpp @@ -849,7 +849,7 @@ void WinCOFFObjectWriter::WriteObject(MCAssembler &Asm, MakeSectionReal(*Section, Number); } - if (NumberOfSections > COFF::MaxNumberOfSections) + if (NumberOfSections > static_cast(COFF::MaxNumberOfSections)) report_fatal_error( "PE COFF object files can't have more than 65,299 sections");