Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: Heribert Dahms To: "'Tels'" , tphan AT iqrinc DOT com Cc: cygwin AT cygwin DOT com Subject: RE: Cygwin Perl and Module Math::BigInt Date: Wed, 14 Nov 2001 21:52:31 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Hi Tels, I don't speak Perl, but in C that would overflow the temporary expression calculated before it is passed as an argument to new()! Try: my $num = Math::BigInt->new(-1 * (1<<24)) * Math::BigInt->new(1<<24); Bye, Heribert (heribert_dahms AT icon-scm DOT com) > -----Original Message----- > From: Tels [SMTP:perl_dummy AT bloodgate DOT com] > Sent: Wednesday, November 14, 2001 19:35 > To: tphan AT iqrinc DOT com > Cc: cygwin AT cygwin DOT com > Subject: Cygwin Perl and Module Math::BigInt > [Heribert] [snip] > >my $num = Math::BigInt->new(-1 * (1<<24) * (1<<24)); > -- 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/