diff options
-rw-r--r-- | src/runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime.c b/src/runtime.c index df2a460..ac1cf58 100644 --- a/src/runtime.c +++ b/src/runtime.c @@ -267,7 +267,7 @@ void vm_print_program(vm_t *vm, FILE *fp) for (size_t i = beg; i < end; ++i) { fprintf(fp, "\t%lu: ", i); - inst_print(program.instructions[i], stdout); + inst_print(program.instructions[i], fp); if (i == program.ptr) fprintf(fp, " <---"); fprintf(fp, "\n"); |