Re: [dpdk-dev] [PATCH] app/test: fix overflow in EFD test

2017-01-30 Thread Thomas Monjalon
2017-01-25 11:29, Pablo de Lara: > When RTE_EFD_VALUE_NUM_BITS is 32, there was a compilation issue > because of an overflow: > > app/test/test_efd.c:157:55: error: overflow in expression; > result is 2147483647 with type 'int' [-Werror,-Winteger-overflow] > data[0] = mrand48() & ((1 << RT

[dpdk-dev] [PATCH] app/test: fix overflow in EFD test

2017-01-25 Thread Pablo de Lara
When RTE_EFD_VALUE_NUM_BITS is 32, there was a compilation issue because of an overflow: app/test/test_efd.c:157:55: error: overflow in expression; result is 2147483647 with type 'int' [-Werror,-Winteger-overflow] data[0] = mrand48() & ((1 << RTE_EFD_VALUE_NUM_BITS) - 1); This commit fixe