Skip to content

Commit 851a4c4

Browse files
committed
Repair prehistoric logic error in lseg_eq and lseg_ne.
1 parent 0a013c8 commit 851a4c4

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy