From c07717041a1dc0544af9c10a13d7902adbc70027 Mon Sep 17 00:00:00 2001 From: A404M Date: Fri, 30 May 2025 18:00:20 +0330 Subject: fix bug in pointer access --- src/runner/runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/runner/runner.c b/src/runner/runner.c index 30fd555..611d55f 100644 --- a/src/runner/runner.c +++ b/src/runner/runner.c @@ -1238,7 +1238,7 @@ AstTree *runAstTreeBuiltin(AstTree *tree, AstTreeScope *scope, const size_t sizeOfType = getSizeOfType(type); const size_t size = *(u64 *)count->metadata * sizeOfType; scope->stackAllocation[scope->stackAllocation_size] = a404m_malloc(size); - memset(scope->stackAllocation[scope->stackAllocation_size], 0, size); + // memset(scope->stackAllocation[scope->stackAllocation_size], 0, size); AstTreeRawValue *value = a404m_malloc(sizeof(void *)); *(void **)value = scope->stackAllocation[scope->stackAllocation_size]; -- cgit v1.2.3