From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24209 invoked by alias); 14 Nov 2001 18:36:33 -0000 Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Received: (qmail 24153 invoked from network); 14 Nov 2001 18:36:26 -0000 Received: from unknown (HELO relay.pair.com) (209.68.1.20) by sourceware.cygnus.com with SMTP; 14 Nov 2001 18:36:26 -0000 Received: (qmail 99117 invoked from network); 14 Nov 2001 18:36:24 -0000 Received: from pd9e14a9d.dip.t-dialin.net (HELO null) (217.225.74.157) by relay1.pair.com with SMTP; 14 Nov 2001 18:36:24 -0000 X-pair-Authenticated: 217.225.74.157 X-Mailer: XFMail 1.4.0 on Linux X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Sun, 11 Nov 2001 08:26:00 -0000 Organization: none From: Tels To: tphan@iqrinc.com Subject: Cygwin Perl and Module Math::BigInt Cc: cygwin@cygwin.com X-SW-Source: 2001-11/txt/msg00205.txt.bz2 Message-ID: <20011111082600.lxrDrxQ_X15gwuM_PNmVVckx4tXi8Ic5nRIniGnrayo@z> -----BEGIN PGP SIGNED MESSAGE----- Moin, [sorry for the late reply, I don't read this list] "T.Phan" wrote on Fri, 10 Aug 2001 15:38:11 -0500: >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! The scalar probably overflowed and returned "NaN" so that BigInt also produced a "NaN". On my Linux 32 bit box it produces the same number than Activestate. What version of Bigint do you have? And what does Perl print without the bigInt->new() around the expression? Thanx in advance, Tels - -- "Why do you go so slowly? Do you think this is some kind of game?" PGP key available on http://bloodgate.com/tels.asc or via email. perl -MDev::Bollocks -e'print Dev::Bollocks->rand(),"\n"' proactively transform compelling infrastructures -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: latin1 iQEVAwUBO/K5L3cLPEOTuEwVAQHrOQf+M4IVe+GTJ4BaIFN2AEWPtG6C7ep814hg EDfkP7pCijRudhpW4WCWhdpmKaDHwYS7bmGj9jhK/LpawlRUR9qd0zvsiJFjZdD6 baLCRjzzPszwWKZNh3FQbEpcaj512mlucJaa26orJaNaoBrTsqwOGAS2J3aa80hK OChtyPOV9+pLrWqP53MJUiOeYuaBqjxEvuB6abIanA4RFUmknKT/X1SpihkUVS81 dAK9YOwLRr7pO5No7gafMkIyfSLsF7Ywc4DW7N4idytargEX/IVTXz6jKxbjn/jx vWKwniZWRAGz5kUu0L5YYj96Fq7VrQK+XIN/PtRcdllca7Kkjv0Msw== =dySO -----END PGP SIGNATURE----- -- 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/