From 9dfbc021a03d6313c48d8975f5168db740ce7e0d Mon Sep 17 00:00:00 2001 From: Michel Hermier Date: Sat, 6 Feb 2021 16:53:39 +0100 Subject: [PATCH] wren/compiler: Store value in the correct token. (#923) --- src/vm/wren_compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm/wren_compiler.c b/src/vm/wren_compiler.c index 497978f7..5cb34063 100644 --- a/src/vm/wren_compiler.c +++ b/src/vm/wren_compiler.c @@ -717,7 +717,7 @@ static void makeNumber(Parser* parser) { errno = 0; - parser->current.value = NUM_VAL(strtod(parser->tokenStart, NULL)); + parser->next.value = NUM_VAL(strtod(parser->tokenStart, NULL)); if (errno == ERANGE) {