all repos — hex @ 42b359fe967f427a5f7f91f04bbbdbf99a2f9272

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

Fixes.
h3rald h3rald@h3rald.com
Wed, 01 Jan 2025 12:59:13 +0000
commit

42b359fe967f427a5f7f91f04bbbdbf99a2f9272

parent

c480e980ff7b85cf351fe2f38ce8af661a076048

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

jump to
M src/interpreter.csrc/interpreter.c

@@ -22,7 +22,7 @@ context->stack_trace = malloc(sizeof(hex_stack_trace_t));

context->stack_trace->entries = malloc(HEX_STACK_TRACE_SIZE * sizeof(hex_token_t)); context->stack_trace->start = 0; context->stack_trace->size = 0; - context->cleanup_stack->count = 0 + context->cleanup_stack->count = 0; context->settings = malloc(sizeof(hex_settings_t)); context->settings->debugging_enabled = 0; context->settings->errors_enabled = 1;
M src/stack.csrc/stack.c

@@ -481,7 +481,7 @@ }

void hex_cleanup_free(hex_context_t *ctx) { - for (int i = 0; i < ctx->cleanup_stack->count; i++) { + for (size_t i = 0; i < ctx->cleanup_stack->count; i++) { HEX_FREE(ctx, ctx->cleanup_stack->entries[i]); } ctx->cleanup_stack->count = 0;