HomeFreeBSD

hwpmc(4): Force sufficiently wide type for left shift

Description

hwpmc(4): Force sufficiently wide type for left shift

Ordinary input to this macro comes from pe_code, which is uint16_t. Coverity
points out that shifting such a value discards the result of a 24 bit shift,
which is not what we want.

A follow-up to r324291.

CID: 1381676
Sponsored by: Dell EMC Isilon

Details

Provenance
cemAuthored on
Parents
rS324532: Do not try to remove diff.7 optionaly has it is always removed
Branches
Unknown
Tags
Unknown