Thread (2 messages) 2 messages, 2 authors, 2017-01-30

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

From: Thomas Monjalon <hidden>
Date: 2017-01-30 16:14:51

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 << RTE_EFD_VALUE_NUM_BITS) - 1);

This commit fixes the issue by using a setting a different
macro VALUE_BITMASK with a conditional

Fixes: 0e925aef2779 ("app/test: add EFD functional and perf tests")

Reported-by: Yong Liu <redacted>
Signed-off-by: Pablo de Lara <redacted>
Applied, thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help