all repos — hex @ bcb904c9f945c3d85c1fe9fd553aa505a3c4fa8d

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Fixes.
h3rald h3rald@h3rald.com
Fri, 27 Dec 2024 18:11:20 +0100
commit

bcb904c9f945c3d85c1fe9fd553aa505a3c4fa8d

parent

fda424b2265a0d22f3780368973f8f18caa98784

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/main.csrc/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"); }