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

Commit851a4c4

Browse files
committed
Repair prehistoric logic error in lseg_eq and lseg_ne.
1 parent0a013c8 commit851a4c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/backend/utils/adt/geo_ops.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.71 2002/11/13 00:39:47 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/geo_ops.c,v 1.72 2002/11/29 19:25:33 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1932,8 +1932,8 @@ lseg_eq(PG_FUNCTION_ARGS)
19321932
LSEG*l2=PG_GETARG_LSEG_P(1);
19331933

19341934
PG_RETURN_BOOL(FPeq(l1->p[0].x,l2->p[0].x)&&
1935-
FPeq(l1->p[1].y,l2->p[1].y)&&
1936-
FPeq(l1->p[0].x,l2->p[0].x)&&
1935+
FPeq(l1->p[0].y,l2->p[0].y)&&
1936+
FPeq(l1->p[1].x,l2->p[1].x)&&
19371937
FPeq(l1->p[1].y,l2->p[1].y));
19381938
}
19391939

@@ -1944,8 +1944,8 @@ lseg_ne(PG_FUNCTION_ARGS)
19441944
LSEG*l2=PG_GETARG_LSEG_P(1);
19451945

19461946
PG_RETURN_BOOL(!FPeq(l1->p[0].x,l2->p[0].x)||
1947-
!FPeq(l1->p[1].y,l2->p[1].y)||
1948-
!FPeq(l1->p[0].x,l2->p[0].x)||
1947+
!FPeq(l1->p[0].y,l2->p[0].y)||
1948+
!FPeq(l1->p[1].x,l2->p[1].x)||
19491949
!FPeq(l1->p[1].y,l2->p[1].y));
19501950
}
19511951

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp