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:
parent
4520ba6769
commit
9418820efb
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue