[svn:parrot] r39311 - trunk/src

bacek at svn.parrot.org bacek at svn.parrot.org
Mon Jun 1 23:11:26 UTC 2009


Author: bacek
Date: Mon Jun  1 23:11:26 2009
New Revision: 39311
URL: https://trac.parrot.org/parrot/changeset/39311

Log:
[core][cage] Call pmc_reuse from Parrot_pmc_try_reuse even if types are same.

Parrot_pmc_try_reuse is about "try" not "how".

Modified:
   trunk/src/pmc.c

Modified: trunk/src/pmc.c
==============================================================================
--- trunk/src/pmc.c	Mon Jun  1 23:01:58 2009	(r39310)
+++ trunk/src/pmc.c	Mon Jun  1 23:11:26 2009	(r39311)
@@ -268,7 +268,7 @@
         if (type >= enum_class_core_max)
             /* We are not core PMC. Just clone self to preserve semantic of VTABLEs */
             dest = VTABLE_clone(interp, self);
-        else if (dest->vtable->base_type != type)
+        else
             pmc_reuse(interp, dest, type, 0);
     }
 


More information about the parrot-commits mailing list