mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-05 08:10:05 +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);
|
val = cosmoV_getTop(state, i + 1);
|
||||||
|
|
||||||
// set key/value pair
|
// 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;
|
*newVal = *val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user