Address compiler warning
This commit is contained in:
parent
34874dd94f
commit
378ffed37e
|
@ -813,9 +813,10 @@ bool MathLib::isIntHex(const std::string& str)
|
|||
state = DIGIT;
|
||||
else
|
||||
return false;
|
||||
break;
|
||||
case DIGIT:
|
||||
if (isxdigit(static_cast<unsigned char>(*it)))
|
||||
; // state = DIGITS;
|
||||
; // state = DIGIT;
|
||||
else
|
||||
return isValidIntegerSuffix(it,str.end());
|
||||
break;
|
||||
|
|
|
@ -668,6 +668,7 @@ private:
|
|||
ASSERT_EQUALS(false, MathLib::isIntHex("+0x"));
|
||||
ASSERT_EQUALS(false, MathLib::isIntHex("-0x"));
|
||||
ASSERT_EQUALS(false, MathLib::isIntHex("0x"));
|
||||
ASSERT_EQUALS(false, MathLib::isIntHex("0xl"));
|
||||
ASSERT_EQUALS(false, MathLib::isIntHex("0xx"));
|
||||
ASSERT_EQUALS(false, MathLib::isIntHex("-0175"));
|
||||
ASSERT_EQUALS(false, MathLib::isIntHex("-0_garbage_"));
|
||||
|
|
Loading…
Reference in New Issue