fixed a huge bug

This commit is contained in:
IonutParau 2026-02-11 14:17:03 +01:00
parent ca8387a9e1
commit 69c6d953da

View File

@ -1448,7 +1448,7 @@ nn_Exit nn_pusharraytable(nn_Computer *computer, size_t len) {
t->len = len; t->len = len;
for(size_t i = 0; i < len; i++) { for(size_t i = 0; i < len; i++) {
t->vals[i*2].type = NN_VAL_NUM; t->vals[i*2].type = NN_VAL_NUM;
t->vals[i*2].number = (double)i; t->vals[i*2].number = (double)i+1;
t->vals[i*2+1] = computer->callstack[computer->stackSize - len + i]; t->vals[i*2+1] = computer->callstack[computer->stackSize - len + i];
} }
computer->stackSize -= len; computer->stackSize -= len;