mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
U is good enough
llvm-svn: 140166
This commit is contained in:
parent
2de4e5096d
commit
0b34adbbaf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user