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()
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Charset: utf8
Content-Disposition: inline
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 465
Download (untitled) / with headers
text/plain 465b
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-21735-1341855846-1458.52124-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: hv [...] crypt.org
Content-Length: 63
This has been fixed with newer code. Please close this ticket.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-19396-1341905400-599.52124-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 72
Confirmed by code inspection: it exists in 1.993, but is fixed in 1.997.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.