This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Cygwin Perl and Module Math::BigInt


Hi, 

  I tried to 'make test' on the the Convert:ASN1 and it kept fail at
  place where the Math::BigInt always returns NaN.

  I cut out the segment below and ran it and sure enough, it return
  NaN in Cygwin Perl.  However, the same script return a number in
  ActiveState Perl:

#--------------------------
use strict;
use Math::BigInt;

my $num = Math::BigInt->new(-1 * (1<<24) * (1<<24));

print "$num\n";

exit;



#----- Cygwin perl returns:  NaN

#----- ActiveState perl returns :  -281474976710656



  Any idea how to fix this in Cygwin?  Thank in advance!


---
tcp

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]