guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 83/85: Don't use HAVE_COPYSIGN in libguile/numbers.c


From: Andy Wingo
Subject: [Guile-commits] 83/85: Don't use HAVE_COPYSIGN in libguile/numbers.c
Date: Thu, 13 Jan 2022 03:40:27 -0500 (EST)

wingo pushed a commit to branch main
in repository guile.

commit 4feff820bed83b84acb3267edfcfbc1d18a2bce1
Author: Daniel Llorens <lloda@sarc.name>
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

[Prev in Thread] Current Thread [Next in Thread]