[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 02/03: Don't use HAVE_COPYSIGN in libguile/numbers.c
From: |
Daniel Llorens |
Subject: |
[Guile-commits] 02/03: Don't use HAVE_COPYSIGN in libguile/numbers.c |
Date: |
Mon, 10 Jan 2022 08:18:22 -0500 (EST) |
lloda pushed a commit to branch wip-inline-digits
in repository guile.
commit 16fb92ffc717635f7c7e90839b560e9c9523ec87
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))