mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
Eliminate sign-comparison warnings in APInt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
70303688bc
commit
f83f0f8246
@ -54,12 +54,14 @@ inline static unsigned getDigit(char cdigit, uint8_t radix) {
|
||||
return r;
|
||||
|
||||
r = cdigit - 'A';
|
||||
if (r <= radix - 11U)
|
||||
if (r <= unsigned(radix - 11U))
|
||||
return r + 10;
|
||||
|
||||
r = cdigit - 'a';
|
||||
if (r <= radix - 11U)
|
||||
if (r <= unsigned(radix - 11U))
|
||||
return r + 10;
|
||||
|
||||
radix = 10;
|
||||
}
|
||||
|
||||
r = cdigit - '0';
|
||||
|
Loading…
Reference in New Issue
Block a user