-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Overflow in Range
s with unsigned end value
#13648
Comments
Range
s of unsigned integersRange
s of unsigned integers
Range
s of unsigned integersRange
s with unsigned end value
Range
s with unsigned end valueRange
s with unsigned end value
What should be the correct value for You also get the same type of issue with signed integers when it spans more then half of the range ( |
The thing is the type of |
|
A few methods of
Range
calculateend - 1
orend - begin + 1
. These can raiseOverflowError
for specific unsigned values ofend
:The text was updated successfully, but these errors were encountered: