From 13f795f8f8aa302ee36ca3974fb80dba29240240 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sat, 23 Oct 2021 15:32:40 +0200 Subject: Add more types and access macros --- src/bytecode/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bytecode/compiler.h') diff --git a/src/bytecode/compiler.h b/src/bytecode/compiler.h index ae8fac1..e48a173 100755 --- a/src/bytecode/compiler.h +++ b/src/bytecode/compiler.h @@ -52,7 +52,7 @@ parse_fixnum(Chunk *chunk, Token tok) { } num = num * 10 + (c - '0'); } - emit_constant(chunk, tok, num * sign); + emit_constant(chunk, tok, FIXNUM_VAL(num * sign)); } void parse_tree(Chunk *chunk, Visitor *vs); -- cgit v1.2.1