develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991117.002] a bug in perl5 under Linux

Thread Previous | Thread Next
From:
Hugo
Date:
November 18, 1999 04:06
Subject:
Re: [ID 19991117.002] a bug in perl5 under Linux
Message ID:
199911181208.MAA06930@crypt.compulink.co.uk
In <v03110704b4598751194b@[212.24.192.242]>, Dominic Dunlop writes:
:At 20:59 +0100 1999-11-17, Ilya Zakharevich wrote:
:> Alan Burlison writes:
:> > > % perl
:> > > print 8473018401 % 524288 , "\n"
:> > > 33
:>
:> > $ perl
:> > print 8473018401 % 524288 , "\n"
:> > 524287
:> >
:> > Hmm.
:>
:> Well, you see: (unintentionally) insulting you is not my only function
:> on p5p.
:
:Fine, fine, but does anybody have any idea when and how the problem was
:fixed, and whether the fix has yet been/can be applied in the maintenance
:track?  A grep through _62 Changes for % and modulo sheds no light.  All
:I've established is that the fix was in place by _57, the earliest
:development version I have around.

For what it's worth:

crypt% setperl 57
old: perl5.005_03; new: perl5.005_57
crypt% perl -wle 'print 8473018401 % 524288'
33
crypt% setperl 56
old: perl5.005_57; new: perl5.005_56
crypt% perl -wle 'print 8473018401 % 524288'
524287
crypt% 

.. so it was presumably fixed for the first time in _57.

Hugo

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