You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This documents the current requirement that the right-hand operand of
<< and >> have type bit<32>. I tend to consider that a bug (see
#1158), so I
hope that it will be relaxed in the future (and the documentation
updated).
Signed-off-by: Ben Pfaff <[email protected]>
The following program:
yields the following compiler error that I don't expect (with release v1.2.3 and earlier releases):
I can fix it by casting
y
tou32
in the shift expression, like this:I would prefer that
<<
(and presumably>>
) accept any integer type as its right-hand operand.The text was updated successfully, but these errors were encountered: