]> granicus.if.org Git - postgis/commitdiff
Hm, nan() function?
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 3 Jan 2012 23:28:47 +0000 (23:28 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 3 Jan 2012 23:28:47 +0000 (23:28 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8665 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeodetic.c

index 83d7db663a4588987679b49184fd029b2c568d9c..db8172d9f2e8284a4378dd65a6ad8372206a0e1f 100644 (file)
@@ -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 */