[postgis-tickets] r14891 - Use limits for double, not float, in fix for #3523
Daniel Baston
dbaston at gmail.com
Wed May 11 07:18:53 PDT 2016
Author: dbaston
Date: 2016-05-11 07:18:53 -0700 (Wed, 11 May 2016)
New Revision: 14891
Modified:
trunk/liblwgeom/lwkmeans.c
Log:
Use limits for double, not float, in fix for #3523
Modified: trunk/liblwgeom/lwkmeans.c
===================================================================
--- trunk/liblwgeom/lwkmeans.c 2016-05-11 14:10:24 UTC (rev 14890)
+++ trunk/liblwgeom/lwkmeans.c 2016-05-11 14:18:53 UTC (rev 14891)
@@ -81,8 +81,8 @@
LWGEOM **centroids;
POINT2D *centers_raw;
const POINT2D *cp;
- POINT2D min = { FLT_MAX, FLT_MAX };
- POINT2D max = { FLT_MIN, FLT_MIN };
+ POINT2D min = { DBL_MAX, DBL_MAX };
+ POINT2D max = { DBL_MIN, DBL_MIN };
double dx, dy;
kmeans_config config;
kmeans_result result;
More information about the postgis-tickets
mailing list