From 5e40f85d4ced86978271e80bc71e3769237e7072 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Mon, 8 Dec 2003 01:29:15 +0100 Subject: * demos/perl/GMP.pm: Correction to canonicalize example. And reword the freebsd 5.005 constants problem. --- demos/perl/GMP.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'demos/perl') diff --git a/demos/perl/GMP.pm b/demos/perl/GMP.pm index 05626714f..d1b46ac87 100644 --- a/demos/perl/GMP.pm +++ b/demos/perl/GMP.pm @@ -248,7 +248,7 @@ always represented as 0/1. If not then C can be called to put it in that form. For example, use GMP::Mpq qw(:all); - $q = mpq(21,15); # eek! common factor 5 + $q = mpq(21,15); # eek! common factor 3 canonicalize($q); # get rid of it The following overloaded operators are available, and corresponding @@ -569,9 +569,9 @@ GMP manual, L, L. =head1 BUGS -The overloaded constants sometimes provoke seg faults from perl 5.005_03 on -i386 FreeBSD. Don't know if that's a perl bug or a GMP module bug, though -it does seem to go bad before reaching anything in GMP.xs. +In perl 5.005_03 on i386 FreeBSD, the overloaded constants sometimes provoke +seg faults. Don't know if that's a perl bug or a GMP module bug, though it +does seem to go bad before reaching anything in GMP.xs. There's no way to specify an arbitrary base when converting a string to an mpz (or mpq or mpf), only hex or octal with 0x or 0 (for mpz and mpq, but -- cgit v1.2.1