Remove the octal parsing

This commit is contained in:
vovapi 2020-01-17 19:37:08 +03:00
parent 7703173d49
commit 264caf574e
1 changed files with 0 additions and 3 deletions

View File

@ -383,9 +383,6 @@ func MakeFromLiteral(lit string, tok token.Token, zero uint) Value {
switch tok {
case token.INT:
if len(lit) >= 2 && lit[0] == '0' && (lit[1] == 'o' || lit[1] == 'O') {
lit = "0" + lit[2:]
}
if x, err := strconv.ParseInt(lit, 0, 64); err == nil {
return int64Val(x)
}