Silence -Wsign-compare warnings from GCC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140043 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2011-09-19 20:08:54 +00:00
parent 4d90638130
commit 586a55a290

View File

@ -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;
}