U is good enough

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Douglas Gregor 2011-09-20 18:33:29 +00:00
parent b6777eae58
commit f34fa6f34e

View File

@ -54,11 +54,11 @@ inline static unsigned getDigit(char cdigit, uint8_t radix) {
return r; return r;
r = cdigit - 'A'; r = cdigit - 'A';
if (r <= unsigned(radix - 11U)) if (r <= radix - 11U)
return r + 10; return r + 10;
r = cdigit - 'a'; r = cdigit - 'a';
if (r <= unsigned(radix - 11U)) if (r <= radix - 11U)
return r + 10; return r + 10;
radix = 10; radix = 10;