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
uint attributes behave like int #6190
Comments
From @zoffixznetThis appears to be a regression happened since last release, so would be beneficial to fix this before the release: 13:02 c: 2017.03,HEAD class { has uint $.x }.new: :x(2**64-1) At first glance, the issue appears to be due to calling mp_count_bits on an mp_int that contains the uint value. That should either be changed 13:08 Zoffix Is there mp_uint? |
From @zoffixznetAfter further clarification, the issue isn't really a regression. It's just uint behaves like int and that was a bug before. We now made out-of-range value assignment throw, so that's why 2**64-1 throws. In 2017.03 the value is accepted, but it turns into a -1 If there's already a ticket for `uint attributes behave like int` then this ticket should be just closed. On Fri, 14 Apr 2017 06:21:26 -0700, cpan@zoffix.com wrote:
|
From what I understand this problem is fixed by now:
@niner did some major rework for uints, which no longer behave like ints. That rework certainly also fixed this particular problem. Since there were other tickets (e.g. #3740) and since a lot of tests have been unfudged recently, I'm going to close this one. |
Migrated from rt.perl.org#131149 (status was 'new')
Searchable as RT131149$
The text was updated successfully, but these errors were encountered: