Mercurial > pub > dyncall > dyncall
diff test/call_suite/globals.c @ 442:94c7904977aa
- cleanup hardcoded DBL_MAX
author | Tassilo Philipp |
---|---|
date | Wed, 26 Jan 2022 16:00:39 +0100 |
parents | 23b12c7ad462 |
children | e3bf15207d93 |
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); } }