diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-30 18:00:20 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-30 18:00:20 +0330 |
commit | c07717041a1dc0544af9c10a13d7902adbc70027 (patch) | |
tree | 54b02e1e399531aad16ca41825f553f926bf1d77 /src | |
parent | 15fce202de10352d60c1853e7c8940b3eeca13c9 (diff) |
fix bug in pointer access
Diffstat (limited to 'src')
-rw-r--r-- | src/runner/runner.c | 2 |
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]; |