Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimír Štill <[email protected]>
  • Loading branch information
vlstill committed Jan 15, 2025
1 parent d9d4688 commit 1d38035
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontends/p4/typeChecking/typeCheckExpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,8 +949,10 @@ const IR::Node *TypeInferenceBase::shift(const IR::Operation_Binary *expression)
typeError("%1%: Shift amount must be an unsigned number", expression->right);
return expression;
} else if (!rbits && !rtype->is<IR::Type_InfInt>()) {
typeError("%1%: The right operand of shifts must be either an expression of type bit<S> "
"or int, but is %2%", expression->right, rtype);
typeError(
"%1%: The right operand of shifts must be either an expression of type bit<S> or int, "
"but is %2%",
expression->right, rtype);
}

if (!lt && !ltype->is<IR::Type_InfInt>()) {
Expand Down

0 comments on commit 1d38035

Please sign in to comment.