Commit 9418820e authored by Tom Lane's avatar Tom Lane

Fix point <-> polygon code for zero-distance case.

"PG_RETURN_FLOAT8(x)" is not "return x", except perhaps by accident
on some platforms.
parent 4520ba67
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment