[svn:parrot] r39317 - trunk/src/pmc
bacek at svn.parrot.org
bacek at svn.parrot.org
Tue Jun 2 09:09:28 UTC 2009
Author: bacek
Date: Tue Jun 2 09:09:27 2009
New Revision: 39317
URL: https://trac.parrot.org/parrot/changeset/39317
Log:
[pmc][cage] Don't reuse dest in Scalar.subtract.
Modified:
trunk/src/pmc/scalar.pmc
Modified: trunk/src/pmc/scalar.pmc
==============================================================================
--- trunk/src/pmc/scalar.pmc Tue Jun 2 08:47:27 2009 (r39316)
+++ trunk/src/pmc/scalar.pmc Tue Jun 2 09:09:27 2009 (r39317)
@@ -257,10 +257,7 @@
MULTI PMC *subtract(Complex value, PMC *dest) {
const FLOATVAL a = SELF.get_number();
- if (dest)
- pmc_reuse(INTERP, dest, value->vtable->base_type, 0);
- else
- dest = pmc_new(INTERP, VTABLE_type(INTERP, value));
+ dest = pmc_new(INTERP, VTABLE_type(INTERP, value));
VTABLE_set_number_native(INTERP, dest,
a - VTABLE_get_number_keyed_int(INTERP, value, 0));
More information about the parrot-commits
mailing list