Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: HVDS [...] cpan.org
Cc: hv [...] crypt.org
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 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
  • 1.99
  • 1.99.1
  • 1.9902
  • 1.991
  • 1.992
  • 1.993
Fixed in: 1.997



CC: hv [...] crypt.org
Subject: precedence error in Math::BigInt::objectify()
This line in objectify(): $k->can('as_number') ? $k = $k->as_number() : $k = $a[0]->new($k); needs to be: $k->can('as_number') ? $k = $k->as_number() : ($k = $a[0]->new($k)); or more simply: $k = $k->can('as_number') ? $k->as_number() : $a[0]->new($k); Currently, if $k->can('as_number') is true, it will then evaluate ($k = $k->as_number()) = $a[0]->new($k). This is present as least as far back as v1.73, which is the oldest version I have to hand. Hugo
RT-Send-CC: hv [...] crypt.org
This has been fixed with newer code. Please close this ticket.
Confirmed by code inspection: it exists in 1.993, but is fixed in 1.997.