lloda pushed a commit to branch wip-inline-digits
in repository guile.

commit 16fb92ffc717635f7c7e90839b560e9c9523ec87
Author: Daniel Llorens <[email protected]>
AuthorDate: Mon Jan 10 12:46:57 2022 +0100

    Don't use HAVE_COPYSIGN in libguile/numbers.c
    
    * libguile/numbers.c (icmplx2str): As stated. copysign() is required by C99 
and
      already used without guards elsewhere in this file.
---
 libguile/numbers.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libguile/numbers.c b/libguile/numbers.c
index 1a96d9c8c..83fe027a9 100644
--- a/libguile/numbers.c
+++ b/libguile/numbers.c
@@ -3450,11 +3450,7 @@ icmplx2str (double real, double imag, char *str, int 
radix)
   double sgn;
   
   i = idbl2str (real, str, radix);
-#ifdef HAVE_COPYSIGN
   sgn = copysign (1.0, imag);
-#else
-  sgn = imag;
-#endif
   /* Don't output a '+' for negative numbers or for Inf and
      NaN.  They will provide their own sign. */
   if (sgn >= 0 && isfinite (imag))

Reply via email to