From 9418820efb32e739706cc3860347089315562ee4 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 15 Dec 2014 14:04:27 -0500 Subject: [PATCH] Fix point <-> polygon code for zero-distance case. "PG_RETURN_FLOAT8(x)" is not "return x", except perhaps by accident on some platforms. --- src/backend/utils/adt/geo_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/adt/geo_ops.c b/src/backend/utils/adt/geo_ops.c index 946dc2893d..bc56b0a542 100644 --- a/src/backend/utils/adt/geo_ops.c +++ b/src/backend/utils/adt/geo_ops.c @@ -2689,7 +2689,7 @@ dist_ppoly_internal(Point *pt, POLYGON *poly) #ifdef GEODEBUG printf("dist_ppoly_internal- point inside of polygon\n"); #endif - PG_RETURN_FLOAT8(0.0); + return 0.0; } /* initialize distance with segment between first and last points */ -- 2.40.0