From 5b2836f00c28c4affdd25e23132d417376f47faf Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Tue, 3 Jan 2012 23:28:47 +0000 Subject: [PATCH] Hm, nan() function? git-svn-id: http://svn.osgeo.org/postgis/trunk@8665 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwgeodetic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblwgeom/lwgeodetic.c b/liblwgeom/lwgeodetic.c index 83d7db663..db8172d9f 100644 --- a/liblwgeom/lwgeodetic.c +++ b/liblwgeom/lwgeodetic.c @@ -1870,7 +1870,7 @@ double lwgeom_azumith_spheroid(const LWPOINT *r, const LWPOINT *s, const SPHEROI /* Same point, return NaN */ if ( FP_EQUALS(x1, x2) && FP_EQUALS(y1, y2) ) { - return NAN; + return nan(""); } /* Do the direction calculation */ -- 2.49.0