]> git.droids-corp.org - dpdk.git/blobdiff - app/test/test_memory.c
app/test: fix integer overflow in memory unit test
[dpdk.git] / app / test / test_memory.c
index 02ef3cfac0ec19b3260a2bd5fc9a11fd871524d8..6816385ba7e17fea5161c17595d6e3c46528f338 100644 (file)
@@ -55,7 +55,8 @@ static int
 test_memory(void)
 {
        uint64_t s;
-       unsigned i, j;
+       unsigned i;
+       size_t j;
        const struct rte_memseg *mem;
 
        /*