This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
vax-netbsd: another negative zero assumption
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 21 Oct 2016 12:29:27 +0000 (08:29 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 22 Oct 2016 00:13:39 +0000 (20:13 -0400)
Though this had been masked by NV_INF guard.

ext/POSIX/POSIX.xs

index f8288e3..e7fbecc 100644 (file)
@@ -837,7 +837,11 @@ static NV my_tgamma(NV x)
 #endif
 #ifdef NV_INF
   if (x == 0.0 || x == NV_INF)
 #endif
 #ifdef NV_INF
   if (x == 0.0 || x == NV_INF)
+#ifdef DOUBLE_IS_IEEE_FORMAT
     return x == -0.0 ? -NV_INF : NV_INF;
     return x == -0.0 ? -NV_INF : NV_INF;
+#else
+    return NV_INF;
+#endif
 #endif
 
   /* The function domain is split into three intervals:
 #endif
 
   /* The function domain is split into three intervals: