HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/astro/libnova/files/patch-src_hyperbolic__motion.c
--- src/hyperbolic_motion.c.orig	2011-07-28 11:02:50 UTC
+++ src/hyperbolic_motion.c
@@ -70,12 +70,12 @@ next_z:
                 F = Z1 * G1;
                 Q3 = Q3 + F;
                 if (Z > 100 || fabs(F) > 10000)
-                        return nan("0");
+                        return strtod("NAN(0)", NULL);
                 if (fabs(F) > PREC)
                         goto next_z;
                 L++;
                 if (L > 100)
-                        return nan("0");
+                        return strtod("NAN(0)", NULL);
                 do
                 {
                         S1 = S;