From 57f96b999dbdef888c1af8e712b3ea726bf03047 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 24 Nov 2017 15:26:38 +0100 Subject: libtests/malloctest: Fix 64-bit targets Update #3082. --- testsuites/libtests/malloctest/init.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/testsuites/libtests/malloctest/init.c b/testsuites/libtests/malloctest/init.c index 6be6c1c25d..577f557a85 100644 --- a/testsuites/libtests/malloctest/init.c +++ b/testsuites/libtests/malloctest/init.c @@ -1173,7 +1173,7 @@ static void test_heap_size_with_overhead(void) static void test_posix_memalign(void) { void *p1; - int i; + size_t i; int sc; int maximumShift; @@ -1199,14 +1199,16 @@ static void test_posix_memalign(void) maximumShift = (sizeof(size_t) * CHAR_BIT) - 1; for ( i=sizeof(void *) ; i