[postgis-tickets] r16703 - Generate nan() explicitly with a zeroed out area, does this fix mix WKB generation of POINT EMPTY? References #4138
Paul Ramsey
pramsey at cleverelephant.ca
Thu Aug 23 07:42:21 PDT 2018
Author: pramsey
Date: 2018-08-23 07:42:21 -0700 (Thu, 23 Aug 2018)
New Revision: 16703
Modified:
trunk/liblwgeom/lwout_wkb.c
Log:
Generate nan() explicitly with a zeroed out area, does this fix mix WKB generation of POINT EMPTY? References #4138
Modified: trunk/liblwgeom/lwout_wkb.c
===================================================================
--- trunk/liblwgeom/lwout_wkb.c 2018-08-23 12:45:27 UTC (rev 16702)
+++ trunk/liblwgeom/lwout_wkb.c 2018-08-23 14:42:21 UTC (rev 16703)
@@ -330,7 +330,7 @@
if ( geom->type == POINTTYPE )
{
const LWPOINT *pt = (LWPOINT*)geom;
- static double nn = NAN;
+ double nn = nan("0");
int i;
for ( i = 0; i < FLAGS_NDIMS(pt->point->flags); i++ )
{
More information about the postgis-tickets
mailing list