Fix incorrect length of lexemes in silly_cmp_tsvector()

This commit is contained in:
Teodor Sigaev 2006-08-29 13:31:54 +00:00
parent cda6d0a8d3
commit 9711782628
1 changed files with 1 additions and 1 deletions

View File

@ -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);