[perl #127144] Native uint doesn't overflow on ++

2017-07-22 Thread Jan-Olof Hendig via RT
On Fri, 07 Apr 2017 19:16:17 -0700, alex.jakime...@gmail.com wrote: > This no longer prints 256. > > Bisectable points to > https://github.com/rakudo/rakudo/commit/5401a1aa8f12c360ccd3e4000dcdc65ad98c746a > > Is it actually resolved or not? > > I will mark it testneeded for now (if it's not reso

Re: [perl #127144] Native uint doesn't overflow on ++

2016-01-04 Thread Juerd Waalboer
Brian S. Julin via RT skribis 2016-01-03 15:37 (-0800): > S02-types/native.t would seem a ood place for testing scalar sized uints. Thanks. Unfortunately, I couldn't easily figure out how to write TODO tests. So here's something that someone could copy and paste: # RT #127144, uint increment

Re: [perl #127144] Native uint doesn't overflow on ++

2016-01-04 Thread Tobias Leich
That highlights the bug: m: my uint8 $x = 255; print $x, " -> "; $x = $x + 1; say $x; rakudo-moar 0f26ae: OUTPUT«255 -> 0␤» m: my uint8 $x = 255; print $x, " -> "; $x++; say $x; rakudo-moar 0f26ae: OUTPUT«255 -> 256␤» Am 04.01.2016 um 11:48 schrieb Elizabeth Mattijsen: On 04 Jan 2016, at 00:25

Re: [perl #127144] Native uint doesn't overflow on ++

2016-01-04 Thread Elizabeth Mattijsen
> On 04 Jan 2016, at 00:25, Juerd Waalboer (via RT) > wrote: > > # New Ticket Created by Juerd Waalboer > # Please include the string: [perl #127144] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org/Ticket/Display.html?id=127144 > > > > Bug: >

Re: [perl #127144] Native uint doesn't overflow on ++

2016-01-04 Thread Bart Wiegmans
Just speculating, but I think this can be fixed by codegen; to be specific, the inc_i op should be followed by a truncate in case of a sized variable. 2016-01-04 11:37 GMT+01:00 Elizabeth Mattijsen : > > On 04 Jan 2016, at 00:25, Juerd Waalboer (via RT) < > perl6-bugs-follo...@perl.org> wrote: >

Re: [perl #127144] Native uint doesn't overflow on ++

2016-01-04 Thread Elizabeth Mattijsen
> On 04 Jan 2016, at 00:25, Juerd Waalboer (via RT) > wrote: > > # New Ticket Created by Juerd Waalboer > # Please include the string: [perl #127144] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org/Ticket/Display.html?id=127144 > > > > Bug: >

[perl #127144] Native uint doesn't overflow on ++

2016-01-03 Thread via RT
# New Ticket Created by Juerd Waalboer # Please include the string: [perl #127144] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=127144 > Bug: > my uint8 $x = 255; print $x, " -> "; $x = $x + 1; say $x; 255 -> 0 Wor