Fixes.
h3rald h3rald@h3rald.com
Wed, 01 Jan 2025 12:59:13 +0000
2 files changed,
2 insertions(+),
2 deletions(-)
M
src/interpreter.c
→
src/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.c
→
src/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;