Merge pull request #1750 from ethereum/asmoctal

Disallow octal numbers in parser.
This commit is contained in:
Yoichi Hirai
2017-03-08 12:24:22 +01:00
committed by GitHub
4 changed files with 24 additions and 3 deletions
+3
View File
@@ -758,6 +758,9 @@ Token::Value Scanner::scanNumber(char _charSeen)
while (isHexDigit(m_char))
addLiteralCharAndAdvance();
}
else if (isDecimalDigit(m_char))
// We do not allow octal numbers
return Token::Illegal;
}
// Parse decimal digits and allow trailing fractional part.
if (kind == DECIMAL)