[PATCH 3/3] test: fix sign compare warning for rte_bsf64 return type change
Tyler Retzlaff
roretzla at linux.microsoft.com
Mon Aug 8 23:21:32 CEST 2022
From: Tyler Retzlaff <roretzla at microsoft.com>
rte_bsf64 return type has been changed insert cast to suppress
sign-comapre warning with int.
Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
---
app/test/test_mbuf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/test/test_mbuf.c b/app/test/test_mbuf.c
index e09b254..be4c3ff 100644
--- a/app/test/test_mbuf.c
+++ b/app/test/test_mbuf.c
@@ -2677,7 +2677,7 @@ struct test_case {
flag3 = rte_mbuf_dynflag_register_bitnum(&dynflag3,
rte_bsf64(RTE_MBUF_F_LAST_FREE));
- if (flag3 != rte_bsf64(RTE_MBUF_F_LAST_FREE))
+ if ((uint32_t)flag3 != rte_bsf64(RTE_MBUF_F_LAST_FREE))
GOTO_FAIL("failed to register dynamic flag 3, flag3=%d: %s",
flag3, strerror(errno));
--
1.8.3.1
More information about the dev
mailing list