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

int32 goes crazy on -2147483648 (my int32 $x = -2147483648; say $x * 1.0) #6479

Open
p6rt opened this issue Aug 30, 2017 · 1 comment
Open
Labels
regression Issue did not exist previously severe A problem that is encountered frequently, or a problem that needs attention for other reasons

Comments

@p6rt
Copy link

p6rt commented Aug 30, 2017

Migrated from rt.perl.org#131994 (status was 'new')

Searchable as RT131994$

@p6rt
Copy link
Author

p6rt commented Aug 30, 2017

From @AlexDaniel

This one is really old.

Code​:
my int32 $x = -2147483648;
my Int $z = $x;
say $z;
say $z * 1.0

Result (2014.01 … 2015.07.2)​:
-2147483648
-2147483648

Result (b3b4926cc0, 2015.09 … 2017.08, HEAD(e3af662))​:
-2147483648
-18446744071562067968

All other values don't seem to cause problems. int64 seems to be OK too.

Bisected to rakudo/rakudo@b3b4926

@p6rt p6rt added regression Issue did not exist previously severe A problem that is encountered frequently, or a problem that needs attention for other reasons labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Issue did not exist previously severe A problem that is encountered frequently, or a problem that needs attention for other reasons
Projects
None yet
Development

No branches or pull requests

1 participant