#1887: Integer PMC i_multiply bug
--------------------+-------------------------------------------------------
Reporter: Yuki`N | Type: bug
Status: new | Priority: normal
Milestone: | Component: core
Version: master | Severity: high
Keywords: | Lang:
Patch: | Platform: all
--------------------+-------------------------------------------------------
The Integer PMC has a misbehaving i_multiply multimethod, called from the
PIR opcode `mul $P0, $P1'.
The i_multiply VTABLE method is supposed to perform an in-place multiply
on the first operand, but when used with the BigInt and Complex PMCs as
the second operand, no multiplication is performed. Note that this works
fine when using another PMC, i.e. the Float PMC, as the second operand.
Attached is a short snippet of new tests I wrote, all using the same mul
opcode. Note that one of the three works correctly, while the other two do
not.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1887>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets