projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d90638
)
Silence -Wsign-compare warnings from GCC.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 19 Sep 2011 20:08:54 +0000
(20:08 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 19 Sep 2011 20:08:54 +0000
(20:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140043
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APInt.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APInt.cpp
b/lib/Support/APInt.cpp
index 3cb757627909b76802a73b83b6fb2653d59db7a0..d7291a18aa5191b3a792c87856df09473d286f75 100644
(file)
--- a/
lib/Support/APInt.cpp
+++ b/
lib/Support/APInt.cpp
@@
-54,11
+54,11
@@
inline static unsigned getDigit(char cdigit, uint8_t radix) {
return r;
r = cdigit - 'A';
- if (r <= radix
-11
)
+ if (r <= radix
- 11U
)
return r + 10;
r = cdigit - 'a';
- if (r <= radix
-11
)
+ if (r <= radix
- 11U
)
return r + 10;
}