You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The normal maximum value of a 32-bit unsigned integer type is 2^32-1, but the specification states it to be 2^31-1 (the maximum value of a 32-bit signed integer type)
This makes it difficult to simply implement uinteger fields using a normal 32-bit unsigned integer value, and makes testing harder, since the maximum allowable value is not the maximum value of the type.
I believe this would be a simple change in the typescript implementation, since uinteger is just a range restriction of typescript's unbounded number type.
The text was updated successfully, but these errors were encountered:
michaelpj
changed the title
Upper bound of uinteger is odd
Upper bound of uinteger is atypical
Dec 17, 2021
The normal maximum value of a 32-bit unsigned integer type is 2^32-1, but the specification states it to be 2^31-1 (the maximum value of a 32-bit signed integer type)
This makes it difficult to simply implement
uinteger
fields using a normal 32-bit unsigned integer value, and makes testing harder, since the maximum allowable value is not the maximum value of the type.I believe this would be a simple change in the typescript implementation, since
uinteger
is just a range restriction of typescript's unboundednumber
type.The text was updated successfully, but these errors were encountered: