Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate bitshifting beyond the size of SmallIntegers #69

Open
j4yk opened this issue May 19, 2015 · 1 comment
Open

Investigate bitshifting beyond the size of SmallIntegers #69

j4yk opened this issue May 19, 2015 · 1 comment

Comments

@j4yk
Copy link
Contributor

j4yk commented May 19, 2015

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
Copy link
Member

krono commented May 19, 2015

Cog does

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants