Re: [PATCH v1] net/i40e: fix coverity issue

2022-02-23 Thread Ferruh Yigit
On 2/23/2022 6:41 AM, Steve Yang wrote: Cast 1 to type uint64_t to avoid overflow. CID 375812 (#1 of 1): Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN) overflow_before_widen: Potentially overflowing expression 1 << 2 * i + 1 with type int (32 bits, signed) is evaluated using 32-bit arith

[PATCH v1] net/i40e: fix coverity issue

2022-02-22 Thread Steve Yang
Cast 1 to type uint64_t to avoid overflow. CID 375812 (#1 of 1): Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN) overflow_before_widen: Potentially overflowing expression 1 << 2 * i + 1 with type int (32 bits, signed) is evaluated using 32-bit arithmetic, and then used in a context that exp