aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/debug.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-23 14:16:45 +0200
committerBad Diode <bd@badd10de.dev>2021-10-23 14:16:45 +0200
commitbd1480fd2cb80680933b80900c5fb13b5f88ca42 (patch)
tree26443fdbacae70f25642dcc3936d2b054aa4c4be /src/bytecode/debug.h
parent74f9badefe95c070c0294d90cbf70965d8f68b7a (diff)
downloadbdl-bd1480fd2cb80680933b80900c5fb13b5f88ca42.tar.gz
bdl-bd1480fd2cb80680933b80900c5fb13b5f88ca42.zip
Fix a bug in signed fixnum compilation
Diffstat (limited to 'src/bytecode/debug.h')
-rwxr-xr-xsrc/bytecode/debug.h4
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;