llvm.org GIT mirror llvm / f83f0f8
Eliminate sign-comparison warnings in APInt git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140158 91177308-0d34-0410-b5e6-96231b3b80d8 Douglas Gregor 8 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5353 return r;
5454
5555 r = cdigit - 'A';
56 if (r <= radix - 11U)
56 if (r <= unsigned(radix - 11U))
5757 return r + 10;
5858
5959 r = cdigit - 'a';
60 if (r <= radix - 11U)
60 if (r <= unsigned(radix - 11U))
6161 return r + 10;
62
63 radix = 10;
6264 }
6365
6466 r = cdigit - '0';