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;
|
state = DIGIT;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
break;
|
||||||
case DIGIT:
|
case DIGIT:
|
||||||
if (isxdigit(static_cast<unsigned char>(*it)))
|
if (isxdigit(static_cast<unsigned char>(*it)))
|
||||||
; // state = DIGITS;
|
; // state = DIGIT;
|
||||||
else
|
else
|
||||||
return isValidIntegerSuffix(it,str.end());
|
return isValidIntegerSuffix(it,str.end());
|
||||||
break;
|
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("-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("0xx"));
|
||||||
ASSERT_EQUALS(false, MathLib::isIntHex("-0175"));
|
ASSERT_EQUALS(false, MathLib::isIntHex("-0175"));
|
||||||
ASSERT_EQUALS(false, MathLib::isIntHex("-0_garbage_"));
|
ASSERT_EQUALS(false, MathLib::isIntHex("-0_garbage_"));
|
||||||
|
|
Loading…
Reference in New Issue