aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/compiler.h
diff options
context:
space:
mode:
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 d7d7920..3b68868 100755
--- a/src/bytecode/compiler.h
+++ b/src/bytecode/compiler.h
@@ -418,7 +418,7 @@ parse_tree(Chunk *chunk, Compiler *compiler) {
418Chunk * 418Chunk *
419compile(Token *tokens) { 419compile(Token *tokens) {
420 Chunk *chunk = NULL; 420 Chunk *chunk = NULL;
421 chunk = chunk_init(); 421 chunk = NEW_CHUNK("main");
422 Compiler compiler = (Compiler){ 422 Compiler compiler = (Compiler){
423 .tokens = tokens, 423 .tokens = tokens,
424 .current = 0, 424 .current = 0,