Subject: RE: Cygwin Perl and Module Math::BigInt
From: Heribert Dahms <[email-masked]>
To: "'Tels'" <[email-masked]>, [email-masked]
Cc: [email-masked]
Date: Wed, 14 Nov 2001 21:52:31 +0100

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 ([email-masked])

> -----Original Message-----
> From:	Tels [SMTP:[email-masked]]
> Sent:	Wednesday, November 14, 2001 19:35
> To:	[email-masked]
> Cc:	[email-masked]
> 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/