[svn:parrot] r45021 - branches/pcc_megrecells/src/pmc
bacek at svn.parrot.org
bacek at svn.parrot.org
Thu Mar 18 19:55:58 UTC 2010
Author: bacek
Date: Thu Mar 18 19:55:58 2010
New Revision: 45021
URL: https://trac.parrot.org/parrot/changeset/45021
Log:
Fix copy-paste error.
Modified:
branches/pcc_megrecells/src/pmc/callcontext.pmc
Modified: branches/pcc_megrecells/src/pmc/callcontext.pmc
==============================================================================
--- branches/pcc_megrecells/src/pmc/callcontext.pmc Thu Mar 18 19:46:04 2010 (r45020)
+++ branches/pcc_megrecells/src/pmc/callcontext.pmc Thu Mar 18 19:55:58 2010 (r45021)
@@ -827,10 +827,10 @@
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 @@
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 @@
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);
}
/*
More information about the parrot-commits
mailing list