[svn:parrot] r38395 - trunk/src/pmc
tene at svn.parrot.org
tene at svn.parrot.org
Wed Apr 29 04:15:20 UTC 2009
Author: tene
Date: Wed Apr 29 04:15:17 2009
New Revision: 38395
URL: https://trac.parrot.org/parrot/changeset/38395
Log:
Fix an issue with PMCProxy using strings to look up classes.
Modified:
trunk/src/pmc/pmcproxy.pmc
Modified: trunk/src/pmc/pmcproxy.pmc
==============================================================================
--- trunk/src/pmc/pmcproxy.pmc Wed Apr 29 03:35:19 2009 (r38394)
+++ trunk/src/pmc/pmcproxy.pmc Wed Apr 29 04:15:17 2009 (r38395)
@@ -136,9 +136,10 @@
mro_length = VTABLE_elements(interp, interp->vtables[type_num]->mro);
for (i = 1; i < mro_length; i++) {
PMC *pclass = VTABLE_get_pmc_keyed_int(interp, interp->vtables[type_num]->mro, i);
+ PMC *cns = pclass->vtable->_namespace;
STRING *cname = pclass->vtable->whoami;
if (Parrot_str_not_equal(interp, cname, CONST_STRING(interp, "scalar"))) {
- PMC *pproxy = Parrot_oo_get_class_str(interp, cname);
+ PMC *pproxy = Parrot_oo_get_class(interp, cns);
VTABLE_push_pmc(interp, proxy_info->all_parents, pproxy);
}
}
More information about the parrot-commits
mailing list