diff options
Diffstat (limited to 'lib/Support/APInt.cpp')
-rw-r--r-- | lib/Support/APInt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 931c885b92..6eadaafd5f 100644 --- a/lib/Support/APInt.cpp +++ b/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; |