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) {