Skip Menu |

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 66369
Status: resolved
Priority: 0/
Queue: Math-BigInt

Owner: Nobody in particular
Requestors: peter.john.acklam [...]

Bug Information
Severity: Normal
Broken in: 1.993
Fixed in: (no value)

Download (untitled) / with headers
text/plain 663b
While syncing the test suits in the Math::BigInt* distros, I came across this bug related to how Math::BigInt works with Math::BigInt::Lite: $ perl -Ilib -MMath::BigInt::Lite -wle ' $x = Math::BigInt::Lite -> new("10000100001"); $y = Math::BigInt::Lite -> new("10000100001"); $z = Math::BigInt::Lite -> new("0"); $x->bmuladd($y,$z); print $x' Can't use an undefined value as an ARRAY reference at /usr/local/lib/perl5/5.10/Math/BigInt/ line 306. Since $x is Math::BigInt, I suspect there is something wrong in Math::BigInt->bmuladd(). The bug exists in older versions of Math::BigInt, but I haven't bothered to check actually how long it has been around.
BTW, $x is a Math::BigInt, $y is a Math::BigInt, and $z is a Math::BigInt::Lite.
Patched in blead as 913a64d572c047fbf9e646912677430ae169371b.
Please close this ticket.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to