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

"PG_RETURN_FLOAT8(x)" is not "return x", except perhaps by accident
on some platforms.
pull/14/head
Tom Lane 11 years ago
parent 4520ba6769
commit 9418820efb
  1. 2
      src/backend/utils/adt/geo_ops.c

@ -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…
Cancel
Save