aboutsummaryrefslogtreecommitdiff
path: root/src/runner/runner.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-30 18:00:20 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-30 18:00:20 +0330
commitc07717041a1dc0544af9c10a13d7902adbc70027 (patch)
tree54b02e1e399531aad16ca41825f553f926bf1d77 /src/runner/runner.c
parent15fce202de10352d60c1853e7c8940b3eeca13c9 (diff)
fix bug in pointer access
Diffstat (limited to 'src/runner/runner.c')
-rw-r--r--src/runner/runner.c2
1 files changed, 1 insertions, 1 deletions
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];