Commit 97117826 authored by Teodor Sigaev's avatar Teodor Sigaev

Fix incorrect length of lexemes in silly_cmp_tsvector()

parent cda6d0a8
......@@ -979,7 +979,7 @@ silly_cmp_tsvector(const tsvector * a, const tsvector * b)
return ( aptr->pos > bptr->pos ) ? -1 : 1;
} else if ( aptr->len != bptr->len ) {
return ( aptr->len > bptr->len ) ? -1 : 1;
} 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 ) {
return res;
} else if ( aptr->haspos ) {
WordEntryPos *ap = POSDATAPTR(a, aptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment