Skip to content

Commit

Permalink
Silence -Wsign-compare warnings from GCC.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140043 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
d0k committed Sep 19, 2011
1 parent 4d90638 commit 586a55a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Support/APInt.cpp
Expand Up @@ -54,11 +54,11 @@ inline static unsigned getDigit(char cdigit, uint8_t radix) {
return r;

r = cdigit - 'A';
if (r <= radix-11)
if (r <= radix - 11U)
return r + 10;

r = cdigit - 'a';
if (r <= radix-11)
if (r <= radix - 11U)
return r + 10;
}

Expand Down

0 comments on commit 586a55a

Please sign in to comment.