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

chromatic at svn.parrot.org chromatic at svn.parrot.org
Fri Apr 9 05:47:21 UTC 2010


Author: chromatic
Date: Fri Apr  9 05:47:21 2010
New Revision: 45482
URL: https://trac.parrot.org/parrot/changeset/45482

Log:
[PMC] Removed compiler warning.

Modified:
   trunk/src/pmc/default.pmc

Modified: trunk/src/pmc/default.pmc
==============================================================================
--- trunk/src/pmc/default.pmc	Fri Apr  9 05:47:18 2010	(r45481)
+++ trunk/src/pmc/default.pmc	Fri Apr  9 05:47:21 2010	(r45482)
@@ -303,8 +303,7 @@
 =item C<static PMC* make_prop_hash(PARROT_INTERP, PMC *self)>
 
 Create a property hash for C<self>. Returns the created hash. Inferred
-properties will be added to the hash and it will be set as
-C<PMC_metadata(self)>.
+properties will be added to the hash.
 
 =cut
 
@@ -318,8 +317,6 @@
     ASSERT_ARGS(make_prop_hash)
 
     PMC * const prop = Parrot_pmc_new(interp, enum_class_Hash);
-
-    PMC_metadata(self) = prop;
     propagate_std_props(interp, self, prop);
     return prop;
 }
@@ -450,7 +447,7 @@
             return;
 
         if (PMC_IS_NULL(PMC_metadata(SELF)))
-            make_prop_hash(INTERP, SELF);
+            PMC_metadata(SELF) = make_prop_hash(INTERP, SELF);
 
         VTABLE_set_pmc_keyed_str(INTERP, PMC_metadata(SELF), key, value);
     }
@@ -483,7 +480,7 @@
     VTABLE PMC *getprops() {
         if (PMC_IS_NULL(PMC_metadata(SELF))) {
             if (has_pending_std_props(SELF))
-                return make_prop_hash(INTERP, SELF);
+                PMC_metadata(SELF) = make_prop_hash(INTERP, SELF);
             else
                 return PMCNULL;
         }


More information about the parrot-commits mailing list