develooper Front page | perl.vmsperl | Postings from June 2002

Re: [PATCH #2] Re: [PATCH] numeric.c:S_mulexp10 -- quit whenyou can

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
June 19, 2002 14:25
Subject:
Re: [PATCH #2] Re: [PATCH] numeric.c:S_mulexp10 -- quit whenyou can
Message ID:
5.1.1.5.0.20020619162212.03238fa8@mail.mac.com
At 10:04 PM 6/19/2002 +0100, Hugo van der Sanden wrote:
>Ah, I've been looking at it all wrong. The conditional code in mulexp10
>was all wrong; the attached (to be applied _instead_ of my previous
>patch) may improve things.


It did solve the immediate problem:

$ mcr []miniperl -e "my $x = 100.000000000000000001; print $x;"
100

I'll be running the entire test suite but it will take awhile.

I did have to add a semicolon, though, to get it to compile:

--- numeric.c;-1        Wed Jun 19 16:03:31 2002
+++ numeric.c   Wed Jun 19 16:10:42 2002
@@ -762,7 +762,7 @@
                ++exponent;
            }
        }
-    } STMT_END
+    } STMT_END;
 #endif
 
     if (exponent < 0) {


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About