From 7a9fa3153288ae9838082b3172877d2c6eff36a6 Mon Sep 17 00:00:00 2001 From: Mantas Mikaitis Date: Mon, 20 May 2024 13:41:57 +0100 Subject: [PATCH] Fix a bug preveting ctests to pass --- src/cpfloat_template.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cpfloat_template.h b/src/cpfloat_template.h index 7aaabc5..e0d80b4 100644 --- a/src/cpfloat_template.h +++ b/src/cpfloat_template.h @@ -295,7 +295,9 @@ static inline FPPARAMS COMPUTE_GLOBAL_PARAMS(const optstruct *fpopts, cpfloat_exponent_t emax = fpopts->explim == CPFLOAT_EXPRANGE_TARG ? fpopts->emax : DEFEMAX; - cpfloat_exponent_t emin = fpopts->emin; + cpfloat_exponent_t emin = fpopts->explim == CPFLOAT_EXPRANGE_TARG ? + fpopts->emin : + DEFEMIN; if (precision > DEFPREC) { precision = DEFPREC;