Skip to content

Why is NonNegativeInteger modeled as i32 instead of u32? #96

@mikn

Description

@mikn

Hi!

I funnily enough didn't check the underlying type of the modeled type NonNegativeInteger, we use the private range of AS numbers (the last few million) of the 32-bit AS range. I naively modeled it as a NonNegativeInteger and got a runtime validation failure when I tried setting a value in that range.

I am maybe mostly curious why you chose to model the NonNegativeInteger as i32 instead of u32?

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