From c98ac850eb6d8c6b978dc184e366b21d2acb0c6f Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 20 Sep 2011 18:33:29 +0000 Subject: U is good enough llvm-svn: 140166 --- llvm/lib/Support/APInt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support/APInt.cpp') diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 931c885..6eadaafd 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/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; -- cgit v1.1