diff options
author | Preston Pan <preston@nullring.xyz> | 2023-01-09 23:05:10 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2023-01-09 23:05:10 -0800 |
commit | 545f3a7a3e148324981c7a3bffff8045ec60ea05 (patch) | |
tree | bbd8f1ce1a656047139efcf1a073220546d0dfd7 /src/parser.c | |
parent | 43f11a93385c4848bfad49510bdea2849f241816 (diff) |
add exp function
Diffstat (limited to 'src/parser.c')
-rw-r--r-- | src/parser.c | 2 |
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); } |