[squeak-dev] How can I find Kernel-bf.899 and then USE it?

Lawson English saijanai at gmail.com
Wed May 27 02:06:37 UTC 2015


Title says it all.

Thanks

Lawson

>
>    -
>
> ------------------------------
>
> On 10.02.2015, at 13:39, David T. Lewis <lewis at mail.msen.com <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/squeak-dev>> wrote:
> > >* On Tue, Feb 10, 2015 at 02:39:19AM -0700, Lawson English wrote:
> *>>* This bit of code fails at numb := 1024:
> *>> >>* error: Cannot truncate this number
> *>> >>* numb := 1024.
> *>>* 1 to: numb do: [:n||test| test:=(2 raisedTo: n) -1. (test isPrime)
> *>>* ifTrue: [Transcript show: n; tab; show: test;cr]]
> *>> >>* #isProbablyPrime fails with the same number.
> *>> >> >>* numb := 1023.
> *>>* works for both.
> *>> > >* It looks like a problem in random number generation. It is failing in
> *>* LargePositiveInteger>>atRandom which somehow results in the random
> *>* generator producing a value of Float infinity.
> *> >* Dave
> *
> Yep. Random>>nextInt: does not work for really large ints. Fixed in Kernel-bf.899.
>
> - Bert -
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150526/069ce787/attachment.htm


More information about the Squeak-dev mailing list