aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commitf34fa6f34e52ff86ec3caf601c1cb18e3f60da50 (patch)
treefb921ae328f37bd2ba7756518113cfa594639e07 /lib
parentb6777eae58392cb5e19282622996e81c72b72a3e (diff)
downloadexternal_llvm-f34fa6f34e52ff86ec3caf601c1cb18e3f60da50.zip
external_llvm-f34fa6f34e52ff86ec3caf601c1cb18e3f60da50.tar.gz
external_llvm-f34fa6f34e52ff86ec3caf601c1cb18e3f60da50.tar.bz2
U is good enough
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140166 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 931c885..6eadaaf 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 <= 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;