Mercurial > pub > dyncall > dyncall
changeset 450:a3b2afc35730
- suite_aggrs: int scope change for older compilers
author | Tassilo Philipp |
---|---|
date | Thu, 27 Jan 2022 11:46:17 +0100 |
parents | 68f7d6ed3e6f |
children | 70e05a05785e |
files | test/suite_aggrs/globals.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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() {