Content-Length: 256438 | pFad | http://github.com/postgrespro/postgres/commit/9418820efb32e739706cc3860347089315562ee4

CE Fix point <-> polygon code for zero-distance case. · postgrespro/postgres@9418820 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/9418820efb32e739706cc3860347089315562ee4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy