From 67f0debc923dc97fd79554678435f113c9f761d1 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Wed, 27 Oct 2021 15:15:04 +0200 Subject: Fix an issue with reading local variables when nested --- src/bytecode/debug.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/bytecode/debug.h') diff --git a/src/bytecode/debug.h b/src/bytecode/debug.h index e2e3756..e34b65f 100755 --- a/src/bytecode/debug.h +++ b/src/bytecode/debug.h @@ -77,11 +77,6 @@ disassemble_instruction(Chunk *chunk, size_t offset) { } u8 instruction = chunk->code[offset]; switch (instruction) { - case OP_LOCAL: { - u8 local = chunk->code[offset + 1]; - printf("%-16s %4d\n", ops_str[instruction], local); - return offset + 2; - } break; case OP_CONSTANT: { u8 constant = chunk->code[offset + 1]; printf("%-16s %4d -> ", ops_str[instruction], constant); -- cgit v1.2.1