From 98492e812e730560d7b5aad699aa532f7369a8d0 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Fri, 21 Oct 2016 08:29:27 -0400 Subject: [PATCH] vax-netbsd: another negative zero assumption Though this had been masked by NV_INF guard. --- ext/POSIX/POSIX.xs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index f8288e3..e7fbecc 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -837,7 +837,11 @@ static NV my_tgamma(NV x) #endif #ifdef NV_INF if (x == 0.0 || x == NV_INF) +#ifdef DOUBLE_IS_IEEE_FORMAT return x == -0.0 ? -NV_INF : NV_INF; +#else + return NV_INF; +#endif #endif /* The function domain is split into three intervals: -- 1.8.3.1