diff options
Diffstat (limited to 'src/bytecode/debug.h')
-rwxr-xr-x | src/bytecode/debug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bytecode/debug.h b/src/bytecode/debug.h index 05f9d8e..25ac693 100755 --- a/src/bytecode/debug.h +++ b/src/bytecode/debug.h | |||
@@ -38,9 +38,9 @@ disassemble_instruction(Chunk *chunk, size_t offset) { | |||
38 | switch (instruction) { | 38 | switch (instruction) { |
39 | case OP_CONSTANT: { | 39 | case OP_CONSTANT: { |
40 | u8 constant = chunk->code[offset + 1]; | 40 | u8 constant = chunk->code[offset + 1]; |
41 | printf("%-16s %4d (", "OP_CONSTANT", constant); | 41 | printf("%-16s %4d -> ", "OP_CONSTANT", constant); |
42 | display(chunk->constants[constant]); | 42 | display(chunk->constants[constant]); |
43 | printf(")\n"); | 43 | printf("\n"); |
44 | return offset + 2; | 44 | return offset + 2; |
45 | } break; | 45 | } break; |
46 | case OP_SUM: { printf("OP_SUM\n"); return offset + 1; } break; | 46 | case OP_SUM: { printf("OP_SUM\n"); return offset + 1; } break; |