Skip to content

Commit 16222d8

Browse files
committed
fix: fix issue in printf
1 parent ed208d1 commit 16222d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ int disassemble_instruction(Chunk* chunk, int offset)
9797
{
9898
int islocal = chunk->code[offset++];
9999
int index = chunk->code[offset++];
100-
printf("%04 | %s %d\n", offset - 2,
100+
printf("%04d | %s %d\n", offset - 2,
101101
islocal ? "local" : "upvalue", index);
102102
}
103103

0 commit comments

Comments
 (0)