OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2581c8c
)
Fixed signed/unsigned warning
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Thu, 31 Mar 2016 20:57:36 +0000
(20:57 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Thu, 31 Mar 2016 20:57:36 +0000
(20:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265052
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Bitcode/ReaderWriter.h
patch
|
blob
|
history
diff --git
a/include/llvm/Bitcode/ReaderWriter.h
b/include/llvm/Bitcode/ReaderWriter.h
index
f8582cc
..
bbce15a
100644
(file)
--- a/
include/llvm/Bitcode/ReaderWriter.h
+++ b/
include/llvm/Bitcode/ReaderWriter.h
@@
-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]);