aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/compiler.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-23 15:32:40 +0200
committerBad Diode <bd@badd10de.dev>2021-10-23 15:32:40 +0200
commit13f795f8f8aa302ee36ca3974fb80dba29240240 (patch)
tree4ede9989acd1a4cb54f8232c11d249e5f0187256 /src/bytecode/compiler.h
parentbd1480fd2cb80680933b80900c5fb13b5f88ca42 (diff)
downloadbdl-13f795f8f8aa302ee36ca3974fb80dba29240240.tar.gz
bdl-13f795f8f8aa302ee36ca3974fb80dba29240240.zip
Add more types and access macros
Diffstat (limited to 'src/bytecode/compiler.h')
-rwxr-xr-xsrc/bytecode/compiler.h2
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
58void parse_tree(Chunk *chunk, Visitor *vs); 58void parse_tree(Chunk *chunk, Visitor *vs);