mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-12-22 22:40:03 +00:00
Minor OP_NEWARRAY fix
This commit is contained in:
parent
336e57e269
commit
0be6e7dff1
@ -679,7 +679,7 @@ int cosmoV_execute(CState *state) {
|
||||
val = cosmoV_getTop(state, i + 1);
|
||||
|
||||
// set key/value pair
|
||||
CValue *newVal = cosmoT_insert(state, &newObj->tbl, cosmoV_newNumber(i));
|
||||
CValue *newVal = cosmoT_insert(state, &newObj->tbl, cosmoV_newNumber(pairs - i - 1));
|
||||
*newVal = *val;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user