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>
This commit is contained in:
Yaakov Selkowitz 2016-04-01 17:38:17 -05:00
parent b3acb347c4
commit 929be8005c

View File

@ -1,18 +1,18 @@
int int
isinf (double x) isinf (double x)
{ {
return __builtin_isinf (x); return __builtin_isinf_sign (x);
} }
int int
isinff (float x) isinff (float x)
{ {
return __builtin_isinf (x); return __builtin_isinf_sign (x);
} }
int int
isinfl (long double x) isinfl (long double x)
{ {
return __builtin_isinf (x); return __builtin_isinf_sign (x);
} }