summaryrefslogtreecommitdiff
path: root/dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'dis.c')
-rw-r--r--dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dis.c b/dis.c
index 09e7571..b96f07c 100644
--- a/dis.c
+++ b/dis.c
@@ -18,7 +18,7 @@ void disasm_chunk(Chunk *ch) {
uint8_t ix = ch->b[ip++];
printf("loadk #%d\t; ",ix);
Val k = ch->c[ix];
- printf("%-4s : ",valty_str(k.ty));
+ printf("%-4s : ",valty_str(k));
println_val(k);
break;
SIMPLE_INSTR(OP_PRINT, "print")