ofp-actions: Fix undefined behavior shifting 'int' 16 places left.
Shifting a 16-bit signed int 16 bits is technically undefined behavior.
This fixes the problem.  (In practice this should be harmless in this
case.)
Reported-at:
Acked-by: Justin Pettit
@@ -8903,7 +8903,8 @@ ofpact_hdrs_equal(const struct ofpact_hdrs *a,
static uint32_t
ofpact_hdrs_hash(const struct ofpact_hdrs *hdrs)
{
- return hash_2words(hdrs->vendor, (hdrs->type << 16) | hdrs->ofp_version);
+ return hash_2words(hdrs->vendor,
+ ((uint32_t) hdrs->type << 16) | hdrs->ofp_version);
}
#include "ofp-actions.inc2"
