aboutsummaryrefslogtreecommitdiffstats
path: root/astro/libnova/files/patch-src_hyperbolic__motion.c
blob: 7e6e474ed88c3c46b0ee608a238266cc871a4aa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/hyperbolic_motion.c.orig	2015-03-03 11:16:58 UTC
+++ src/hyperbolic_motion.c
@@ -73,14 +73,14 @@ next_z:
 		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;