aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-20 18:33:29 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-20 18:33:29 +0000
commitc98ac850eb6d8c6b978dc184e366b21d2acb0c6f (patch)
treef616bab6c4b0c5b55ef778e06b46618898fd5db9 /llvm/lib/Support/APInt.cpp
parentec11b4fa5a172b887e3566340842c5cd95f53ed0 (diff)
downloadllvm-c98ac850eb6d8c6b978dc184e366b21d2acb0c6f.zip
llvm-c98ac850eb6d8c6b978dc184e366b21d2acb0c6f.tar.gz
llvm-c98ac850eb6d8c6b978dc184e366b21d2acb0c6f.tar.bz2
U is good enough
llvm-svn: 140166
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r--llvm/lib/Support/APInt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 931c885..6eadaafd 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/lib/Support/APInt.cpp
@@ -54,11 +54,11 @@ inline static unsigned getDigit(char cdigit, uint8_t radix) {
return r;
r = cdigit - 'A';
- if (r <= unsigned(radix - 11U))
+ if (r <= radix - 11U)
return r + 10;
r = cdigit - 'a';
- if (r <= unsigned(radix - 11U))
+ if (r <= radix - 11U)
return r + 10;
radix = 10;