Fixes.
h3rald h3rald@h3rald.com
Fri, 27 Dec 2024 18:11:20 +0100
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/main.c
→
src/main.c
@@ -122,9 +122,9 @@
// Tokenize and process the input hex_interpret(ctx, line, "<repl>", 1, 1); // Print the top item of the stack - if (ctx->stack.top >= 0) + if (ctx->stack->top >= 0) { - hex_print_item(stdout, *ctx->stack.entries[ctx->stack.top]); + hex_print_item(stdout, ctx->stack->entries[ctx->stack->top]); // hex_print_item(stdout, HEX_STACK[HEX_TOP]); printf("\n"); }