This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] cygwin/math: make isinf functions signed
- From: Yaakov Selkowitz <yselkowitz at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 4 Apr 2016 15:27:52 -0000
- Subject: [newlib-cygwin] cygwin/math: make isinf functions signed
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=929be8005ceed50182388ba14dc20317ddeeb7bd
commit 929be8005ceed50182388ba14dc20317ddeeb7bd
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date: Fri Apr 1 17:38:17 2016 -0500
cygwin/math: make isinf functions signed
glibc returns -1 for negative infinity:
http://man7.org/linux/man-pages/man3/isinfl.3.html
https://sourceware.org/bugzilla/show_bug.cgi?id=15367
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diff:
---
winsup/cygwin/math/isinf.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/winsup/cygwin/math/isinf.c b/winsup/cygwin/math/isinf.c
index e7d3e26..fd9e299 100644
--- a/winsup/cygwin/math/isinf.c
+++ b/winsup/cygwin/math/isinf.c
@@ -1,18 +1,18 @@
int
isinf (double x)
{
- return __builtin_isinf (x);
+ return __builtin_isinf_sign (x);
}
int
isinff (float x)
{
- return __builtin_isinf (x);
+ return __builtin_isinf_sign (x);
}
int
isinfl (long double x)
{
- return __builtin_isinf (x);
+ return __builtin_isinf_sign (x);
}