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

"PG_RETURN_FLOAT8(x)" is not "return x", except perhaps by accident
on some platforms.
This commit is contained in:
Tom Lane 2014-12-15 14:04:27 -05:00
parent 4520ba6769
commit 9418820efb

View File

@ -2689,7 +2689,7 @@ dist_ppoly_internal(Point *pt, POLYGON *poly)
#ifdef GEODEBUG #ifdef GEODEBUG
printf("dist_ppoly_internal- point inside of polygon\n"); printf("dist_ppoly_internal- point inside of polygon\n");
#endif #endif
PG_RETURN_FLOAT8(0.0); return 0.0;
} }
/* initialize distance with segment between first and last points */ /* initialize distance with segment between first and last points */