From 924716a36bbc494a0f1d39225a43f9c45f80cf28 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 20 Jun 2012 19:32:47 +0000 Subject: [PATCH] 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 --- postgis/geography_measurement_trees.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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... */ -- 2.40.0