This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Cygwin Perl and Module Math::BigInt
- From: Heribert Dahms <heribert_dahms at icon-scm dot com>
- To: 'Tels' <perl_dummy at bloodgate dot com>, tphan at iqrinc dot com
- Cc: cygwin at cygwin dot com
- Date: Wed, 14 Nov 2001 21:52:31 +0100
- Subject: RE: Cygwin Perl and Module Math::BigInt
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@icon-scm.com)
> -----Original Message-----
> From: Tels [SMTP:perl_dummy@bloodgate.com]
> Sent: Wednesday, November 14, 2001 19:35
> To: tphan@iqrinc.com
> Cc: cygwin@cygwin.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/