aboutsummaryrefslogtreecommitdiff
path: root/src/runner/runner.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-30 22:01:19 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-30 22:01:19 +0330
commitc91d3a8893b9c53c5c8e4c5cff72d7caf44cfee4 (patch)
tree47eb14dbceea446e9e065a12e08c2feff22d693a /src/runner/runner.c
parentbb3822cbb347c712925530ded451fc9027f3b26f (diff)
fixing some minor issues
Diffstat (limited to 'src/runner/runner.c')
-rw-r--r--src/runner/runner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runner/runner.c b/src/runner/runner.c
index 52be448..40bcc75 100644
--- a/src/runner/runner.c
+++ b/src/runner/runner.c
@@ -1222,8 +1222,8 @@ AstTree *runAstTreeBuiltin(AstTree *tree, AstTreeScope *scope,
copyAstTree(function->returnType), NULL, NULL);
}
case AST_TREE_TOKEN_BUILTIN_STACK_ALLOC: {
- AstTree *type = arguments[0];
- AstTree *count = arguments[1];
+ AstTree *count = arguments[0];
+ AstTree *type = arguments[1];
size_t stackAllocation_capacity =
a404m_malloc_usable_size(scope->stackAllocation) /