From bd1480fd2cb80680933b80900c5fb13b5f88ca42 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sat, 23 Oct 2021 14:16:45 +0200 Subject: Fix a bug in signed fixnum compilation --- src/bytecode/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bytecode/debug.h') 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) { switch (instruction) { case OP_CONSTANT: { u8 constant = chunk->code[offset + 1]; - printf("%-16s %4d (", "OP_CONSTANT", constant); + printf("%-16s %4d -> ", "OP_CONSTANT", constant); display(chunk->constants[constant]); - printf(")\n"); + printf("\n"); return offset + 2; } break; case OP_SUM: { printf("OP_SUM\n"); return offset + 1; } break; -- cgit v1.2.1