Skip to content

Upper bound of uinteger is atypical #1394

Closed
@michaelpj

Description

@michaelpj

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions