[llvm] r265052 - Fixed signed/unsigned warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 31 13:57:37 PDT 2016
Author: rksimon
Date: Thu Mar 31 15:57:36 2016
New Revision: 265052
URL: http://llvm.org/viewvc/llvm-project?rev=265052&view=rev
Log:
Fixed signed/unsigned warning
Modified:
llvm/trunk/include/llvm/Bitcode/ReaderWriter.h
Modified: llvm/trunk/include/llvm/Bitcode/ReaderWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/ReaderWriter.h?rev=265052&r1=265051&r2=265052&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/ReaderWriter.h (original)
+++ llvm/trunk/include/llvm/Bitcode/ReaderWriter.h Thu Mar 31 15:57:36 2016
@@ -171,7 +171,7 @@ namespace llvm {
const unsigned char *&BufEnd,
bool VerifyBufferSize) {
// Must contain the offset and size field!
- if (BufEnd - BufPtr < BWH_SizeField + 4)
+ if (unsigned(BufEnd - BufPtr) < BWH_SizeField + 4)
return true;
unsigned Offset = support::endian::read32le(&BufPtr[BWH_OffsetField]);
More information about the llvm-commits
mailing list