Skip Menu |
Report information
Id: 124088
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: elizabeth <liz [at] dijkmat.nl>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
To: rakudobug [...] perl.org
Date: Mon, 16 Mar 2015 16:43:13 +0100
Subject: Unsigned int in highest bit length, stays negative
Download (untitled) / with headers
text/plain 261b
[16:41:26] <lizmat> m: my uint64 @a = -1; say @a.perl # same for uint [16:41:27] <+camelia> rakudo-moar 21f01b: OUTPUT«array[uint64].new(-1)␤» [16:41:57] <lizmat> I guess this would be the same for uint32 on 32bit machines [16:42:11] lizmat rakudobugs
Download (untitled) / with headers
text/plain 127b
Seem you can also just decrement the uints past their boundaries too: $ perl6 -e 'my uint64 $a = 1; --$a for ^10; say $a' -9


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org