On Tue, Jun 01, 1999 at 08:32:42AM -0400, Squeak wrote:
> This bug is present in genius-0.42 too. Whenever a number (int, rat, or
> float) is raised to a negative integer power, something goes wrong.
>
> Basically a typo: when raising a number to a small but negative integer
> power the power was turned into a larger positive number since it was cast
> to unsigned. Thus 5^-1 became 5^(2^32-1) (and then 1/ that).
actually I fixed one of the problems but looking at your patch I found a
larger problem in the mpw_pow_z function and fixed that too
George
-- ------------------------------------------------------------------------------ George Lebl <jirka@5z.com> http://www.5z.com/jirka/ ------------------------------------------------------------------------------ The following implements RSA in perl and is illegal to export from the US: #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1 lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)Received on Tue Jun 01 1999 - 09:51:01 CDT
This archive was generated by hypermail 2.2.0 : Sun Apr 17 2011 - 21:00:02 CDT