Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: peter.john.acklam [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 1.58
  • 1.59
  • 1.60
  • 1.61
  • 1.62
  • 1.63
  • 1.64
  • 1.65
  • 1.66
  • 1.67
  • 1.68
  • 1.69
  • 1.70
  • 1.71
  • 1.72
  • 1.73
  • 1.74
  • 1.75
  • 1.76
  • 1.77
  • 1.78
  • 1.79
  • 1.80
  • 1.82
  • 1.83
  • 1.84
  • 1.85
  • 1.86
  • 1.87
  • 1.88
  • 1.89
  • 1.90
  • 1.91
  • 1.92
  • 1.93
  • 1.94-TRIAL
  • 1.95
  • 1.96
  • 1.97
  • 1.98
Fixed in: (no value)



Subject: $x -> bmodpow(1, 1) fails when $x is large
Mathematically, x^1 (mod 1) is 0 for all x, but this fails in Math::BigInt when x is large: $ perl -MMath::BigInt -wle 'print Math::BigInt -> new("1e50") -> bmodpow(1, 1)' 100000000000000000000000000000000000000000 This bug has been present since the bmodpow() method was introduced in version 1.58. I have tracked down the problem to be (yet another bug) in Math::BigInt::Calc -> _modpow().