aboutsummaryrefslogtreecommitdiff
path: root/astro/libnova/files
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2006-02-18 21:25:14 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2006-02-18 21:25:14 +0000
commitdb8ed14dafbe423ce24a2a67cb0de4ceca5a8e79 (patch)
tree4f1d658aaf57339729cb74e2152ec645321e765d /astro/libnova/files
parent46095567897cb956c6eccf55a074aecef12a78e7 (diff)
Notes
Diffstat (limited to 'astro/libnova/files')
-rw-r--r--astro/libnova/files/patch-src_hyperbolic_motion.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/astro/libnova/files/patch-src_hyperbolic_motion.c b/astro/libnova/files/patch-src_hyperbolic_motion.c
new file mode 100644
index 000000000000..f5af5ce7154c
--- /dev/null
+++ b/astro/libnova/files/patch-src_hyperbolic_motion.c
@@ -0,0 +1,17 @@
+--- src/hyperbolic_motion.c.orig Tue Jul 5 11:09:22 2005
++++ src/hyperbolic_motion.c Sat Feb 18 02:17:12 2006
+@@ -69,12 +69,12 @@
+ 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;