[Pharo-dev] Confused about Floats on 64-bit Pharo 6
Sven Van Caekenberghe
sven at stfx.eu
Thu Jun 1 11:19:30 EDT 2017
> On 1 Jun 2017, at 15:59, Henrik Sperre Johansen <henrik.s.johansen at veloxit.no> wrote:
> SmallInteger >> digitAt: has an n > 4 ifTrue: [^0] check, in 64bit this needs
> to check against 8.
> (The value represents max number of 8-bit digits in a SmallInteger)
I guess that the special case in there should also be adapted to:
self = SmallInteger minVal ifTrue:
["Can't negate minVal -- treat specially"
^ #(0 0 0 0 0 0 0 16) at: n].
More information about the Pharo-dev