Skip to content

Commit 9418820

Browse files
committed
Fix point <-> polygon code for zero-distance case.
"PG_RETURN_FLOAT8(x)" is not "return x", except perhaps by accident on some platforms.
1 parent 4520ba6 commit 9418820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/geo_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2689,7 +2689,7 @@ dist_ppoly_internal(Point *pt, POLYGON *poly)
26892689
#ifdef GEODEBUG
26902690
printf("dist_ppoly_internal- point inside of polygon\n");
26912691
#endif
2692-
PG_RETURN_FLOAT8(0.0);
2692+
return 0.0;
26932693
}
26942694

26952695
/* initialize distance with segment between first and last points */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy