diff --git a/src/pmc/callcontext.pmc b/src/pmc/callcontext.pmc index 6bfd16657e..a6dcab3767 100644 --- a/src/pmc/callcontext.pmc +++ b/src/pmc/callcontext.pmc @@ -827,10 +827,10 @@ return current Namespace GET_ATTR_num_positionals(INTERP, SELF, num_pos); ensure_positionals_storage(INTERP, SELF, num_pos + 1); - Pcc_cell *cell = get_cell_at(INTERP, SELF, pos); - cell->u.n = value; - cell->type = FLOATCELL; - SET_ATTR_num_positionals(INTERP, SELF, pos + 1); + GET_ATTR_positionals(INTERP, SELF, cells); + cells[num_pos].u.n = value; + cells[num_pos].type = FLOATCELL; + SET_ATTR_num_positionals(INTERP, SELF, num_pos + 1); } VTABLE void push_string(STRING *value) { @@ -841,9 +841,9 @@ return current Namespace ensure_positionals_storage(INTERP, SELF, num_pos + 1); GET_ATTR_positionals(INTERP, SELF, cells); - cell->u.s = value; - cell->type = STRINGCELL; - SET_ATTR_num_positionals(INTERP, SELF, pos + 1); + cells[num_pos].u.s = value; + cells[num_pos].type = STRINGCELL; + SET_ATTR_num_positionals(INTERP, SELF, num_pos + 1); } VTABLE void push_pmc(PMC *value) { @@ -854,9 +854,9 @@ return current Namespace ensure_positionals_storage(INTERP, SELF, num_pos + 1); GET_ATTR_positionals(INTERP, SELF, cells); - cell->u.p = value; - cell->type = PMCCELL; - SET_ATTR_num_positionals(INTERP, SELF, pos + 1); + cells[num_pos].u.p = value; + cells[num_pos].type = PMCCELL; + SET_ATTR_num_positionals(INTERP, SELF, num_pos + 1); } /*