[squeak-dev] 2 raisedTo: 63 on Pi returns 0 ? (was Re: how to determine available RAM?)

Vanessa Freudenberg vanessa at codefrau.net
Mon May 10 03:07:18 UTC 2021

On Sun, May 9, 2021 at 10:57 tim Rowledge <tim at rowledge.org> wrote:

> So we're rather pointed to some peculiarity of the 16r80000000
> bit-pattern? My brian hurts.

That is a very peculiar bit pattern indeed, in that it is exactly where
signed arithmetic wraps around. So signed/unsigned or < vs <= or a
combination thereof perhaps?

If you want some *real* fun step through it under gdb 😬


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210509/4fbcbb15/attachment.html>

More information about the Squeak-dev mailing list