diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-20 18:33:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-20 18:33:29 +0000 |
commit | c98ac850eb6d8c6b978dc184e366b21d2acb0c6f (patch) | |
tree | f616bab6c4b0c5b55ef778e06b46618898fd5db9 /llvm/lib/Support/APInt.cpp | |
parent | ec11b4fa5a172b887e3566340842c5cd95f53ed0 (diff) | |
download | llvm-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.cpp | 4 |
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; |