diff options
-rw-r--r-- | llvm/lib/MC/WinCOFFObjectWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/WinCOFFObjectWriter.cpp b/llvm/lib/MC/WinCOFFObjectWriter.cpp index 2de65c798be..489c92675f6 100644 --- a/llvm/lib/MC/WinCOFFObjectWriter.cpp +++ b/llvm/lib/MC/WinCOFFObjectWriter.cpp @@ -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"); |