Skip to content
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

Variable initialization overrides variable type. #37

Open
rcgoodfellow opened this issue Oct 11, 2023 · 0 comments
Open

Variable initialization overrides variable type. #37

rcgoodfellow opened this issue Oct 11, 2023 · 0 comments
Labels

Comments

@rcgoodfellow
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant