aboutsummaryrefslogtreecommitdiff
path: root/lexer.go
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.go')
-rw-r--r--lexer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer.go b/lexer.go
index ec56ccc..c43ba94 100644
--- a/lexer.go
+++ b/lexer.go
@@ -33,7 +33,7 @@ func (y *yyLex) Lex(lval *yySymType) (ret int) {
lval.sval = strings.Replace(item.val, "''", "'", -1)
case INTEGER:
item.val = strings.Replace(item.val, "¯", "-", -1)
- lval.ival, _ = strconv.Atoi(item.val)
+ lval.ival, _ = strconv.ParseInt(item.val, 10, 64)
case FLOAT:
item.val = strings.Replace(item.val, "¯", "-", -1)
lval.fval, _ = strconv.ParseFloat(item.val, 64)