diff options
| author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-04 10:33:15 +0330 |
|---|---|---|
| committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-06-04 10:33:15 +0330 |
| commit | 18d3c17a36fa7b330c996a781aff957cbdaee698 (patch) | |
| tree | 38bc3201f70b2b80f2cb248e24c1e6aaf0c5a138 /src/runner | |
| parent | bde04c7d905814330d60ed354e990177c530df6d (diff) | |
fix bug in array objects
Diffstat (limited to 'src/runner')
| -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 2458cfe..984c7d6 100644 --- a/src/runner/runner.c +++ b/src/runner/runner.c @@ -1964,7 +1964,7 @@ AstTree *toRawValue(AstTree *value, AstTreeScope *scope) { if (value->type->token == AST_TREE_TOKEN_TYPE_ARRAY) { u8 *ptr = stackAlloc(size, scope); ((u64 *)rawValue)[0] = (u64)ptr; - ((u64 *)rawValue)[1] = size; + ((u64 *)rawValue)[1] = object->items_size; size_t filledSize = 0; for (size_t i = 0; i < object->items_size; ++i) { |