# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #128318]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128318 >


<masak> this may sound outrageous, but I think I've just uncovered a
bug in Rakudo
<masak> m: my $x = 0; my $y = ($x - 1) % 8; say $y
<camelia> rakudo-moar 48fe6a: OUTPUT«7␤»
<masak> m: my int $x = 0; my $y = ($x - 1) % 8; say $y
<camelia> rakudo-moar 48fe6a: OUTPUT«-1␤»
<RabidGravy> well that's definitely "special"
* masak submits rakudobug

My expectation is for that second eval to also yield 7. In other
words, the outcome of the modulo calculation shouldn't change just
because $x is a native int.

Reply via email to