wren/compiler: Store value in the correct token. (#923)

This commit is contained in:
Michel Hermier
2021-02-06 16:53:39 +01:00
committed by GitHub
parent ae6fdb3da7
commit 9dfbc021a0

View File

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