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

Implement support for non-const table entries #3748

Merged
merged 12 commits into from
Jun 7, 2023
Prev Previous commit
MacOS build fix
Signed-off-by: Mihai Budiu <mbudiu@gmail.com>
  • Loading branch information
mihaibudiu committed Jun 7, 2023
commit 4d1607d9b38fc6c3c31b1fefbc3587c84cccb9c7
2 changes: 1 addition & 1 deletion frontends/p4/entryPriorities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const IR::Node *DoEntryPriorities::preorder(IR::EntriesList *entries) {
::error(ErrorType::ERR_EXPECTED, "%1% entry must have a priority", entry);
return entries;
}
auto priority = new IR::Constant(currentPriority);
auto priority = new IR::Constant((uint64_t)currentPriority);
auto newEntry = new IR::Entry(entry->srcInfo, entry->annotations, entry->isConst,
priority, entry->keys, entry->action, entry->singleton);
entries->entries[i] = newEntry;
Expand Down