From: Paul Ramsey Date: Wed, 20 Jun 2012 19:32:47 +0000 (+0000) Subject: Hey kid, here's quarter, go buy yourself a compiler. X-Git-Tag: 2.1.0beta2~868 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=924716a36bbc494a0f1d39225a43f9c45f80cf28;p=postgis Hey kid, here's quarter, go buy yourself a compiler. git-svn-id: http://svn.osgeo.org/postgis/trunk@9963 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/geography_measurement_trees.c b/postgis/geography_measurement_trees.c index a70e310be..bad94e6ed 100644 --- a/postgis/geography_measurement_trees.c +++ b/postgis/geography_measurement_trees.c @@ -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... */