[lld] r204223 - [PECOFF] Fix -Wsign-compare warning.
Simon Atanasyan
simon at atanasyan.com
Wed Mar 19 04:06:01 PDT 2014
Author: atanasyan
Date: Wed Mar 19 06:06:01 2014
New Revision: 204223
URL: http://llvm.org/viewvc/llvm-project?rev=204223&view=rev
Log:
[PECOFF] Fix -Wsign-compare warning.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp?rev=204223&r1=204222&r2=204223&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp Wed Mar 19 06:06:01 2014
@@ -184,7 +184,7 @@ public:
buf + offsetof(COFF::ImportHeader, SizeOfData));
// Check if the total size is valid.
- if (end - buf != sizeof(COFF::ImportHeader) + dataSize) {
+ if (std::size_t(end - buf) != sizeof(COFF::ImportHeader) + dataSize) {
ec = make_error_code(NativeReaderError::unknown_file_format);
return;
}
More information about the llvm-commits
mailing list