Author: pmichaud
Date: Tue May 6 20:54:00 2008
New Revision: 27370
Modified:
trunk/src/pmc/integer.pmc
Log:
[core]:
* Fix mul and n_mul opcodes for subclassed objects.
Resolves RT#53108.
(The other math ops apparently already worked.)
Modified: trunk/src/pmc/integer.pmc
==============================================================================
--- trunk/src/pmc/integer.pmc (original)
+++ trunk/src/pmc/integer.pmc Tue May 6 20:54:00 2008
@@ -611,7 +611,7 @@
if (!dest)
dest = pmc_new(INTERP, VTABLE_type(INTERP, SELF));
- VTABLE_set_number_native(INTERP, dest, valf * PMC_int_val(SELF));
+ VTABLE_set_number_native(INTERP, dest, SELF.get_number() * valf);
return dest;
}
}