Mercurial > pub > dyncall > dyncall
changeset 442:94c7904977aa
- cleanup hardcoded DBL_MAX
author | Tassilo Philipp |
---|---|
date | Wed, 26 Jan 2022 16:00:39 +0100 |
parents | e59e381b4fca |
children | c1eba6f08064 |
files | test/call_suite/globals.c test/suite_aggrs/globals.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/call_suite/globals.c Wed Jan 26 14:33:31 2022 +0100 +++ b/test/call_suite/globals.c Wed Jan 26 16:00:39 2022 +0100 @@ -47,7 +47,7 @@ K_l[i] = (long long) (((rand_d()-0.5)*2) * (1LL<<(sizeof(long long)*8-2))); K_p[i] = (void*) (long) (((rand_d()-0.5)*2) * (1LL<<(sizeof(void*)*8-1))); K_f[i] = (float) (rand_d() * FLT_MAX); - K_d[i] = (double) (((rand_d()-0.5)*2) * 1.7976931348623157E+308/*__DBL_MAX__*/); /* Plan9 doesn't know the macro. */ + K_d[i] = (double) (((rand_d()-0.5)*2) * DBL_MAX); } }
--- a/test/suite_aggrs/globals.c Wed Jan 26 14:33:31 2022 +0100 +++ b/test/suite_aggrs/globals.c Wed Jan 26 16:00:39 2022 +0100 @@ -60,7 +60,7 @@ K_l[i] = (long long) (((rand_d()-0.5)*2) * (1LL<<(sizeof(long long)*8-2))); K_p[i] = (void*) (long) (((rand_d()-0.5)*2) * (1LL<<(sizeof(void*)*8-1))); K_f[i] = (float) (rand_d() * FLT_MAX); - K_d[i] = (double) (((rand_d()-0.5)*2) * 1.7976931348623157E+308/*__DBL_MAX__*/); /* Plan9 doesn't know the macro. */ + K_d[i] = (double) (((rand_d()-0.5)*2) * DBL_MAX); K_a[i] = malloc(maxaggrsize+AGGR_MISALIGN); rand_mem(K_a[i], maxaggrsize+AGGR_MISALIGN); K_a[i] = (char*)K_a[i]+AGGR_MISALIGN;