[svn:parrot] r42253 - trunk/src/pmc

NotFound at svn.parrot.org NotFound at svn.parrot.org
Wed Nov 4 16:34:51 UTC 2009


Author: NotFound
Date: Wed Nov  4 16:34:49 2009
New Revision: 42253
URL: https://trac.parrot.org/parrot/changeset/42253

Log:
[cage] set PMCNULL when the signature wants a PMC and have a NULL STRING*

Modified:
   trunk/src/pmc/callsignaturereturns.pmc

Modified: trunk/src/pmc/callsignaturereturns.pmc
==============================================================================
--- trunk/src/pmc/callsignaturereturns.pmc	Wed Nov  4 13:36:33 2009	(r42252)
+++ trunk/src/pmc/callsignaturereturns.pmc	Wed Nov  4 16:34:49 2009	(r42253)
@@ -308,7 +308,9 @@
                 *(STRING **)ptr = value;
                 break;
             case PARROT_ARG_PMC:
-                *(PMC **)ptr = get_string_pmc(INTERP, value);
+                *(PMC **)ptr = STRING_IS_NULL(value) ?
+                    PMCNULL :
+                    get_string_pmc(INTERP, value);
                 break;
             default:
                 PARROT_ASSERT(!"Impossible type");


More information about the parrot-commits mailing list