diff test/suite_aggrs/globals.c @ 450:a3b2afc35730

- suite_aggrs: int scope change for older compilers
author Tassilo Philipp
date Thu, 27 Jan 2022 11:46:17 +0100
parents 4bd3ed699de8
children 90b1d927912a
line wrap: on
line diff
--- a/test/suite_aggrs/globals.c	Thu Jan 27 11:44:47 2022 +0100
+++ b/test/suite_aggrs/globals.c	Thu Jan 27 11:46:17 2022 +0100
@@ -33,7 +33,7 @@
 #define AGGR_MISALIGN 0
 
 static double rand_d()                    { return ( ( (double) rand() )  / ( (double) RAND_MAX ) ); }
-static void   rand_mem(void* p, size_t s) { for(int i=0; i<s; ++i) ((char*)p)[i] = (char)rand(); } /* byte by byte is slow, but whatev  */
+static void   rand_mem(void* p, size_t s) { int i; for(i=0; i<s; ++i) ((char*)p)[i] = (char)rand(); } /* byte by byte is slow, but whatev  */
 
 static int calc_max_aggr_size()
 {