aboutsummaryrefslogtreecommitdiff
path: root/lexer.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-03-23 01:00:24 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-03-23 01:00:24 +0100
commit39425b56c1cf0f4171e9d8c49d81368f9155c771 (patch)
tree5c7cfc591c7574f9f4e6b646312bee0fe59a038a /lexer.go
parenta0e24d60883ed46e46396a697e41c59cdbecc5cd (diff)
Switch to int64
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)