Skip to content

Variable initialization overrides variable type. #37

@rcgoodfellow

Description

@rcgoodfellow

This code

bit<16> x = 0;

results in an internal compiler type for x that is 128 bits wide since constants without a width specifier default to 128-bit values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions