hpi-swa / RSqueak

A Squeak/Smalltalk VM written in RPython.
BSD 3-Clause "New" or "Revised" License
83 stars 15 forks source link

Investigate bitshifting beyond the size of SmallIntegers #69

Open j4yk opened 9 years ago

j4yk commented 9 years ago

What does our bit-shifting primitive do in 32 bit if you do aSmallInteger << 48? Verify if Cog returns a LargePositiveInteger and that we return the same. There are probably test cases for this in the KernelTests-Numbers package.

@timfel told me that there used to be and could still be a lingering bug.

krono commented 9 years ago

Cog does

(4234 << 48) class "=> LargePositiveInteger"