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

Fix hdr align #3521

Merged
merged 4 commits into from
Sep 12, 2022
Merged

Fix hdr align #3521

merged 4 commits into from
Sep 12, 2022

Conversation

kamleshbhalui
Copy link
Contributor

Properly discard bits when casting to lower sizes
Fix typeMap for constants

if ((width & 0x7) != 0) {
all_hdr_field_aligned = false;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and if it's not bit<> you do nothing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all fields will be of bit<> type at this point.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's what BUG is for.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes done

Properly discard bits when casting to lower sizes
Fix typeMap for constants
Fix formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants