aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-09-19 20:08:54 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-09-19 20:08:54 +0000
commit586a55a29089c6128f843cd331fed210c480ed0a (patch)
tree36d8411ce1ca0a3157ca4e8e1ea5a3a83520cea1 /lib/Support/APInt.cpp
parent4d906381307334cfed187226c548129c3421d0c4 (diff)
downloadexternal_llvm-586a55a29089c6128f843cd331fed210c480ed0a.zip
external_llvm-586a55a29089c6128f843cd331fed210c480ed0a.tar.gz
external_llvm-586a55a29089c6128f843cd331fed210c480ed0a.tar.bz2
Silence -Wsign-compare warnings from GCC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APInt.cpp')
-rw-r--r--lib/Support/APInt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp
index 3cb7576..d7291a1 100644
--- 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;
}