[lld] r194793 - Fix Windows buildbot on which size_t is not unsinged long.

Rui Ueyama ruiu at google.com
Fri Nov 15 00:08:29 PST 2013


Author: ruiu
Date: Fri Nov 15 02:08:29 2013
New Revision: 194793

URL: http://llvm.org/viewvc/llvm-project?rev=194793&view=rev
Log:
Fix Windows buildbot on which size_t is not unsinged long.

Modified:
    lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp

Modified: lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp?rev=194793&r1=194792&r2=194793&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp Fri Nov 15 02:08:29 2013
@@ -111,7 +111,7 @@ public:
       : HeaderChunk(), _context(ctx) {
     // Minimum size of DOS stub is 64 bytes. The next block (PE header) needs to
     // be aligned on 8 byte boundary.
-    _size = std::max(_context.getDosStub().size(), 64UL);
+    _size = std::max(_context.getDosStub().size(), (size_t)64);
     _size = llvm::RoundUpToAlignment(_size, 8);
   }
 





More information about the llvm-commits mailing list