diff options
Diffstat (limited to 'src/bytecode/debug.h')
-rwxr-xr-x | src/bytecode/debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytecode/debug.h b/src/bytecode/debug.h index bc736f9..6703e68 100755 --- a/src/bytecode/debug.h +++ b/src/bytecode/debug.h | |||
@@ -80,7 +80,7 @@ disassemble_instruction(Chunk *chunk, size_t offset) { | |||
80 | case OP_JUMP_IF_FALSE: { | 80 | case OP_JUMP_IF_FALSE: { |
81 | u16 a = chunk->code[offset + 1]; | 81 | u16 a = chunk->code[offset + 1]; |
82 | u16 b = chunk->code[offset + 2]; | 82 | u16 b = chunk->code[offset + 2]; |
83 | u16 jmp = (a << 8) | b; | 83 | s16 jmp = (a << 8) | b; |
84 | printf("%-16s %4d\n", ops_str[instruction], jmp); | 84 | printf("%-16s %4d\n", ops_str[instruction], jmp); |
85 | return offset + 3; | 85 | return offset + 3; |
86 | } break; | 86 | } break; |