From: Paul Ramsey Date: Fri, 9 Oct 2009 18:07:06 +0000 (+0000) Subject: Fix incorrect use of flags macros X-Git-Tag: 1.5.0b1~381 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09d8eb42caef54f1dca38712b3b5fb3f2941a54f;p=postgis Fix incorrect use of flags macros git-svn-id: http://svn.osgeo.org/postgis/trunk@4634 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/g_box.c b/liblwgeom/g_box.c index fe23aa390..55813410a 100644 --- a/liblwgeom/g_box.c +++ b/liblwgeom/g_box.c @@ -71,8 +71,8 @@ int gbox_overlaps(GBOX g1, GBOX g2) { /* Make sure our boxes have the same dimensionality */ - if( ! (FLAGS_HAS_Z(g1.flags) == FLAGS_HAS_Z(g2.flags) && - FLAGS_HAS_M(g1.flags) == FLAGS_HAS_M(g2.flags) && + if( ! (FLAGS_GET_Z(g1.flags) == FLAGS_GET_Z(g2.flags) && + FLAGS_GET_M(g1.flags) == FLAGS_GET_M(g2.flags) && FLAGS_GET_GEODETIC(g1.flags) == FLAGS_GET_GEODETIC(g2.flags) ) ) { lwerror("gbox_overlaps: geometries have mismatched dimensionality");