diff options
Diffstat (limited to 'clox/src/compiler.c')
-rw-r--r-- | clox/src/compiler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clox/src/compiler.c b/clox/src/compiler.c index 75df7aa..81e1616 100644 --- a/clox/src/compiler.c +++ b/clox/src/compiler.c @@ -153,7 +153,7 @@ static void expression() { parsePrecedence(PREC_ASSIGNMENT); } static void number() { double value = strtod(parser.previous.start, NULL); - emitConstant(value); + emitConstant(NUMBER_VAL(value)); } static void unary() { |