| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <BF35D9C143BCCC4EB63181B67C9320C83A9AC8@serv-075.icon-germany.local> |
| 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 |
| 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) |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |