8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cda6d0a commit 9711782Copy full SHA for 9711782
contrib/tsearch2/tsvector.c
@@ -979,7 +979,7 @@ silly_cmp_tsvector(const tsvector * a, const tsvector * b)
979
return ( aptr->pos > bptr->pos ) ? -1 : 1;
980
} else if ( aptr->len != bptr->len ) {
981
return ( aptr->len > bptr->len ) ? -1 : 1;
982
- } else if ( (res=strncmp(STRPTR(a) + aptr->pos, STRPTR(b) + bptr->pos, b->len))!= 0 ) {
+ } else if ( (res=strncmp(STRPTR(a) + aptr->pos, STRPTR(b) + bptr->pos, bptr->len))!= 0 ) {
983
return res;
984
} else if ( aptr->haspos ) {
985
WordEntryPos *ap = POSDATAPTR(a, aptr);
0 commit comments