You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Post-incrementing native integers across overflow boundary gives wrong answer. My expectation is that $x++ should evaluate to the same value of $x before the operation.
> say my int8 $x = 127; say $x++; say $x
127
-129
-128
> say my int16 $x = 32767; say $x++; say $x
32767
-32769
-32768
This is Rakudo version 2018.11 built on MoarVM version 2018.11
The text was updated successfully, but these errors were encountered:
To my knowledge, this behaviour is intentional with regards to native integer variables. I'm therefore closing this issue. Please re-open if you disagree.
Simply removing the optimization in the static optimizer, breaks spectests.
OTOH, this problem has been around since at least Christmas 2015, so it looks like it's not a very common occurrence. So I don't need to see a need to add a blocker label just yet.
Post-incrementing native integers across overflow boundary gives wrong answer. My expectation is that
$x++
should evaluate to the same value of$x
before the operation.This is Rakudo version 2018.11 built on MoarVM version 2018.11
The text was updated successfully, but these errors were encountered: