]> granicus.if.org Git - postgis/commitdiff
Hey kid, here's quarter, go buy yourself a compiler.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 20 Jun 2012 19:32:47 +0000 (19:32 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 20 Jun 2012 19:32:47 +0000 (19:32 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9963 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/geography_measurement_trees.c

index a70e310be1bad7ed929a671c16261c1bd945206a..bad94e6ed3032667e50c079e25141acbe550321e 100644 (file)
@@ -138,7 +138,7 @@ geography_distance_cache(FunctionCallInfoData* fcinfo, const GSERIALIZED* g1, co
        Assert(distance);
        
        /* Two points? Get outa here... */
-       if ( gserialized_get_type(g1) == POINT && gserialized_get_type(g2) == POINT )
+       if ( (gserialized_get_type(g1) == POINTTYPE) && (gserialized_get_type(g2) == POINTTYPE) )
                return LW_FAILURE;
 
        /* Fetch/build our cache, if appropriate, etc... */
@@ -194,7 +194,7 @@ geography_dwithin_cache(FunctionCallInfoData* fcinfo, const GSERIALIZED* g1, con
        Assert(dwithin);
        
        /* Two points? Get outa here... */
-       if ( gserialized_get_type(g1) == POINT && gserialized_get_type(g2) == POINT )
+       if ( (gserialized_get_type(g1) == POINTTYPE) && (gserialized_get_type(g2) == POINTTYPE) )
                return LW_FAILURE;
        
        /* Fetch/build our cache, if appropriate, etc... */