diff options
author | Bad Diode <bd@badd10de.dev> | 2021-10-23 15:32:40 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-10-23 15:32:40 +0200 |
commit | 13f795f8f8aa302ee36ca3974fb80dba29240240 (patch) | |
tree | 4ede9989acd1a4cb54f8232c11d249e5f0187256 /src/bytecode/compiler.h | |
parent | bd1480fd2cb80680933b80900c5fb13b5f88ca42 (diff) | |
download | bdl-13f795f8f8aa302ee36ca3974fb80dba29240240.tar.gz bdl-13f795f8f8aa302ee36ca3974fb80dba29240240.zip |
Add more types and access macros
Diffstat (limited to 'src/bytecode/compiler.h')
-rwxr-xr-x | src/bytecode/compiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
52 | } | 52 | } |
53 | num = num * 10 + (c - '0'); | 53 | num = num * 10 + (c - '0'); |
54 | } | 54 | } |
55 | emit_constant(chunk, tok, num * sign); | 55 | emit_constant(chunk, tok, FIXNUM_VAL(num * sign)); |
56 | } | 56 | } |
57 | 57 | ||
58 | void parse_tree(Chunk *chunk, Visitor *vs); | 58 | void parse_tree(Chunk *chunk, Visitor *vs); |