From 4f5290d786e3ea06e960b613f73028f4a1b01f4b Mon Sep 17 00:00:00 2001 From: bacek Date: Thu, 18 Mar 2010 19:55:58 +0000 Subject: [PATCH] Fix copy-paste error. git-svn-id: https://svn.parrot.org/parrot/branches/pcc_megrecells@45021 d31e2699-5ff4-0310-a27c-f18f2fbe73fe --- src/pmc/callcontext.pmc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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); } /*