git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282183
91177308-0d34-0410-b5e6-
96231b3b80d8
consumeInteger(unsigned Radix, T &Result) {
unsigned long long ULLVal;
if (consumeUnsignedInteger(*this, Radix, ULLVal) ||
- static_cast<long long>(static_cast<T>(ULLVal)) != ULLVal)
+ static_cast<unsigned long long>(static_cast<T>(ULLVal)) != ULLVal)
return true;
Result = ULLVal;
return false;
, "08" // illegal oct characters
, "0o8" // illegal oct characters
, "-123" // negative unsigned value
+ , "0x"
+ , "0b"
};