diff options
Diffstat (limited to 'crypto/params.c')
-rw-r--r-- | crypto/params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/params.c b/crypto/params.c index a1db5db..9049041 100644 --- a/crypto/params.c +++ b/crypto/params.c @@ -1029,7 +1029,7 @@ int OSSL_PARAM_set_double(OSSL_PARAM *p, double val) * 15 bits of UINT64_MAX to avoid using imprecise floating * point values. */ - && (double)(UINT64_MAX - 65535) + 65536.0) { + && val < (double)(UINT64_MAX - 65535) + 65536.0) { p->return_size = sizeof(uint64_t); *(uint64_t *)p->data = (uint64_t)val; return 1; |