summaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index a6a5b82..5f97ef9 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -86,7 +86,7 @@ ast_t *parse_int(parser_t *parser) {
}
ast_t *parse_float(parser_t *parser) {
- double ret = atof(parser->tokens[parser->i]->value);
+ long double ret = atof(parser->tokens[parser->i]->value);
parser_move(parser);
return init_ast_float(ret);
}