Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <BF35D9C143BCCC4EB63181B67C9320C83A9AC8@serv-075.icon-germany.local>
From: Heribert Dahms <heribert_dahms@icon-scm.com>
To: "'Tels'" <perl_dummy@bloodgate.com>, tphan@iqrinc.com
Cc: cygwin@cygwin.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@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/

