diff options
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 d7d7920..3b68868 100755 --- a/src/bytecode/compiler.h +++ b/src/bytecode/compiler.h | |||
@@ -418,7 +418,7 @@ parse_tree(Chunk *chunk, Compiler *compiler) { | |||
418 | Chunk * | 418 | Chunk * |
419 | compile(Token *tokens) { | 419 | compile(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, |