Ticket #1887 (closed bug: fixed)
Integer PMC i_multiply bug
Reported by: | Yuki`N | Owned by: | whiteknight |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | core | Version: | master |
Severity: | high | Keywords: | gci |
Cc: | Language: | ||
Patch status: | Platform: | all |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.