Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9711782

Browse files
committed
Fix incorrect length of lexemes in silly_cmp_tsvector()
1 parentcda6d0a commit9711782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎contrib/tsearch2/tsvector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ silly_cmp_tsvector(const tsvector * a, const tsvector * b)
979979
return (aptr->pos>bptr->pos ) ?-1 :1;
980980
}elseif (aptr->len!=bptr->len ) {
981981
return (aptr->len>bptr->len ) ?-1 :1;
982-
}elseif ( (res=strncmp(STRPTR(a)+aptr->pos,STRPTR(b)+bptr->pos,b->len))!=0 ) {
982+
}elseif ( (res=strncmp(STRPTR(a)+aptr->pos,STRPTR(b)+bptr->pos,bptr->len))!=0 ) {
983983
returnres;
984984
}elseif (aptr->haspos ) {
985985
WordEntryPos*ap=POSDATAPTR(a,aptr);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp