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
modulo on natives with negative values are wrong #4999
Comments
From @lizmat[12:40:37] <lizmat> m: my int $a = -10; say $a % 12 # wrong This is the source of RT #127161 Liz |
From @masak<masak> this may sound outrageous, but I think I've just uncovered a My expectation is for that second eval to also yield 7. In other |
From @lizmat
$ perl6 -e 'use nqp; say nqp::mod_i(-1,8); say nqp::mod_I(-1,8,Int)’ *if* this is a bug, it is a bug in the underlying nqp::mod_i implementation. Liz |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#127168 (status was 'new')
Searchable as RT127168$
The text was updated successfully, but these errors were encountered: