[dpdk-dev] [PATCH v4 08/23] rte_mbuf.h: avoid warnings from inadvertant promotion
Olivier Matz
olivier.matz at 6wind.com
Thu May 17 10:30:03 CEST 2018
On Mon, May 14, 2018 at 01:10:07PM +0800, Andy Green wrote:
> "1 + value", where value is an uint16_t causes promotion
> to a signed int. The compiler complained that we are
> shoving an int into a uint16_t return type with different
> size and sign.
>
> Bumping and returning value directly instead removes the
> promotion and the problem.
>
> Signed-off-by: Andy Green <andy at warmcat.com>
Acked-by: Olivier Matz <olivier.matz at 6wind.com>
More information about the dev
mailing list