Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9418820

Browse files
committed
Fix point <-> polygon code for zero-distance case.
"PG_RETURN_FLOAT8(x)" is not "return x", except perhaps by accidenton some platforms.
1 parent4520ba6 commit9418820

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
#ifdefGEODEBUG
26902690
printf("dist_ppoly_internal- point inside of polygon\n");
26912691
#endif
2692-
PG_RETURN_FLOAT8(0.0);
2692+
return0.0;
26932693
}
26942694

26952695
/* initialize distance with segment between first and last points */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp