Closed xavierba closed 1 year ago
Already fixed in the latest devel version CryptX-0.079_004
Thanks for the quick answer. I confirm that 62fde623598a7d04081fc63bc992c0d860e875df fixes the issue.
However, I believe t/mbi_ltm_since_1.999842.t
should be run for Math::BigInt 1.999840 and later, and thus be renamed and tweaked accordingly.
Hi,
CryptX fails at some test when built against Math::BigInt >= 1.999840
From Math::BigInt 1.999840 changelog:
Add methods bblsft() and bbrsft(), which do bitwise left and right shift, respectively. The binary operators for bitwise left and right shift, "<<" and ">>", now call the methods bblsft() and bbrsft(), respectively.
While this behaviour is consistent with how "<<" and ">>" work on floating point numbers in core Perl, it changes how "<<" and ">>" worked on Math::BigFloat objects. This is a corner case, but any code currently using "<<" and ">>" on Math::BigFloat objects might need to be modified as follows
$x >>= $y should be changed to $x -> brsft($y) $x <<= $y should be changed to $x -> blsft($y) $x >> $y should be changed to $x -> copy() -> brsft($y) $x << $y should be changed to $x -> copy() -> blsft($y)
This was initially reported by Petr Pisar at: https://bugzilla.redhat.com/show_bug.cgi?id=2240587