[svn:parrot] r45361 - trunk/src/interp

NotFound at svn.parrot.org NotFound at svn.parrot.org
Wed Mar 31 20:11:37 UTC 2010


Author: NotFound
Date: Wed Mar 31 20:11:36 2010
New Revision: 45361
URL: https://trac.parrot.org/parrot/changeset/45361

Log:
check for compreg hash PMC nullness, not for NULL, in Parrot_compreg

Modified:
   trunk/src/interp/inter_misc.c

Modified: trunk/src/interp/inter_misc.c
==============================================================================
--- trunk/src/interp/inter_misc.c	Wed Mar 31 19:47:07 2010	(r45360)
+++ trunk/src/interp/inter_misc.c	Wed Mar 31 20:11:36 2010	(r45361)
@@ -140,7 +140,7 @@
     PMC    * hash           = VTABLE_get_pmc_keyed_int(interp, interp->iglobals,
                               IGLOBALS_COMPREG_HASH);
 
-    if (!hash) {
+    if (PMC_IS_NULL(hash)) {
         hash = Parrot_pmc_new_noinit(interp, enum_class_Hash);
         VTABLE_init(interp, hash);
         VTABLE_set_pmc_keyed_int(interp, iglobals,


More information about the parrot-commits mailing list