Skip to content

Commit 3a214ab

Browse files
committed
Remove pos comparison in silly_cmp_tsvector(): it is not a semantically significant
1 parent 9711782 commit 3a214ab

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

contrib/tsearch2/tsvector.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,8 +975,6 @@ silly_cmp_tsvector(const tsvector * a, const tsvector * b)
975975
for(i=0;i<a->size;i++) {
976976
if ( aptr->haspos != bptr->haspos ) {
977977
return ( aptr->haspos > bptr->haspos ) ? -1 : 1;
978-
} else if ( aptr->pos != bptr->pos ) {
979-
return ( aptr->pos > bptr->pos ) ? -1 : 1;
980978
} else if ( aptr->len != bptr->len ) {
981979
return ( aptr->len > bptr->len ) ? -1 : 1;
982980
} else if ( (res=strncmp(STRPTR(a) + aptr->pos, STRPTR(b) + bptr->pos, bptr->len))!= 0 ) {

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