[svn:parrot] r38397 - trunk/src
tene at svn.parrot.org
tene at svn.parrot.org
Wed Apr 29 05:57:10 UTC 2009
Author: tene
Date: Wed Apr 29 05:57:10 2009
New Revision: 38397
URL: https://trac.parrot.org/parrot/changeset/38397
Log:
Fix a type comparison to avoid breaking make_namespace for HLLs that hll_map parrot strings, I think.
Modified:
trunk/src/global.c
Modified: trunk/src/global.c
==============================================================================
--- trunk/src/global.c Wed Apr 29 05:00:37 2009 (r38396)
+++ trunk/src/global.c Wed Apr 29 05:57:10 2009 (r38397)
@@ -130,7 +130,7 @@
PMC *ns = base_ns;
INTVAL i, n;
- if (pmc_key->vtable->base_type == enum_class_String) {
+ if (VTABLE_isa(interp, pmc_key, CONST_STRING(interp, "String"))) {
STRING *str_key = VTABLE_get_string(interp, pmc_key);
return internal_ns_keyed_str(interp, base_ns, str_key, flags);
}
More information about the parrot-commits
mailing list