[postgis-commits] svn - r2669 - trunk/lwgeom

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Mon Jul 23 14:43:46 PDT 2007


Author: mleslie
Date: 2007-07-23 14:43:44 -0700 (Mon, 23 Jul 2007)
New Revision: 2669

Modified:
   trunk/lwgeom/liblwgeom.h
Log:
Fixed the FP_LTEQ macro to accomodate values significantly larger that zero.

Modified: trunk/lwgeom/liblwgeom.h
===================================================================
--- trunk/lwgeom/liblwgeom.h	2007-07-23 18:52:22 UTC (rev 2668)
+++ trunk/lwgeom/liblwgeom.h	2007-07-23 21:43:44 UTC (rev 2669)
@@ -18,7 +18,7 @@
 #define FP_MAX(A, B) ((A > B) ? A : B)
 #define FP_MIN(A, B) ((A < B) ? A : B)
 #define FP_LT(A, B) ((A + PGIS_EPSILON) < B)
-#define FP_LTEQ(A, B) ((A - PGIS_EPSILON) < B)
+#define FP_LTEQ(A, B) ((A - PGIS_EPSILON) <= B)
 #define FP_CONTAINS_TOP(A, X, B) (FP_LT(A, X) && FP_LTEQ(X, B))
 #define FP_CONTAINS_BOTTOM(A, X, B) (FP_LTEQ(A, X) && FP_LT(X, B))
 #define FP_CONTAINS_INCL(A, X, B) (FP_LTEQ(A, X) && FP_LTEQ(X, B))



More information about the postgis-commits mailing list