From 545f3a7a3e148324981c7a3bffff8045ec60ea05 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 9 Jan 2023 23:05:10 -0800 Subject: add exp function --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.c') 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); } -- cgit