[Cuis-dev] Curious bug

Luciano Notarfrancesco luchiano at gmail.com
Tue Jun 23 06:57:37 PDT 2020


Try this in a workspace:

[a _ (1 << 60) atRandom.
b _ (a bitReverse: 64) bitReverse: 64.
a = b] whileFalse

I tested it in the latest image with a recent cog spur x64 VM. The loop
stops with a ‘b’ that is a LargePositiveInteger but it actually fits in a
SmallInteger and it is equal to ‘a’. I don’t have time to debug it until
the weekend but I thought someone might find it amusing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200623/5fbdc9f0/attachment.htm>


More information about the Cuis-dev mailing list