-
Notifications
You must be signed in to change notification settings - Fork 1
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
uint32 behaving like int64 #3779
Comments
From @grondiluHello $ perl6 -e 'say my uint32 $ = 2**32;' $ perl6 --version My machine is a i686 (32bits) running GNU/Debian Sid. |
From helmut.wollmersdorfer@fixpunkt.de[BUG] [13:02] <wollmers> m: my uint64 $z = 0 +| (1 +< 62);say sprintf("%064b",$z); [13:04] <wollmers> m: my uint64 $z = 0 +| (1 +< 63);say sprintf("%064b",$z);say $z; [13:10] <wollmers> m: my uint64 $z = +^0;say sprintf("%064b",$z);say $z;say ($z > 0);say $z.lsb,' ',$z.msb; |
From @jnthnOn Mon Apr 13 16:42:11 2015, grondilu@yahoo.fr wrote:
We didn't really implement unsigned/sized types for lexicals properly until recently. I've now fleshed out that support a good bit, and uint8, uint16, and uint32 are in much better shape. I've added tests in S02-types/native.t. I'd like to do more exhaustive tests, as well as sort out various issues around uint64, but have used all the time I'm likely to get on this topic ahead of the xmas release. So, we'll settle for the improvements so far, knock this off the xmas list, but leave it open for later review. |
The RT System itself - Status changed from 'new' to 'open' |
I assume these things are better now. @niner did some major rework for uint recently and the tests for this ticket (which were added to S02-types/native.t with Raku/roast@08952f65f9) are passing now on MoarVM. I'm closing this ticket now. (If there are remaining problems with uint64, we should open a new ticket over at https://github.com/rakudo/rakudo/issues.) |
Migrated from rt.perl.org#124294 (status was 'open')
Searchable as RT124294$
The text was updated successfully, but these errors were encountered: