[dpdk-dev] Define statement with UB prevents compilation using UBSAN

Stephen Hemminger stephen at networkplumber.org
Thu Jun 10 23:36:04 CEST 2021


On Thu, 10 Jun 2021 16:51:37 -0400
Owen Hilyard <ohilyard at iol.unh.edu> wrote:

> Working backward to the define
> statement, AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY is defined as
> 
> #define AEU_INPUTS_ATTN_BITS_MCP_LATCHED_SCPAD_PARITY (0x1 << 31)

Why not (1u << 31)?


More information about the dev mailing list