commit | c98ac850eb6d8c6b978dc184e366b21d2acb0c6f | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Tue Sep 20 18:33:29 2011 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Tue Sep 20 18:33:29 2011 +0000 |
tree | f616bab6c4b0c5b55ef778e06b46618898fd5db9 | |
parent | ec11b4fa5a172b887e3566340842c5cd95f53ed0 [diff] [blame] |
U is good enough llvm-svn: 140166
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 931c885..6eadaaf 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp
@@ -54,11 +54,11 @@ 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;