Fix silly bug

This commit is contained in:
Teodor Sigaev 2004-06-01 10:24:25 +00:00
parent ba0f38d601
commit f35e8d8431
1 changed files with 1 additions and 1 deletions

View File

@ -457,7 +457,7 @@ ts_stat_sql(text *txt, text *ws)
if ( ws ) {
char *buf;
buf = VARDATA(ws);
while( buf - VARDATA(ws) < VARSIZE(buf) - VARHDRSZ ) {
while( buf - VARDATA(ws) < VARSIZE(ws) - VARHDRSZ ) {
switch (tolower(*buf)) {
case 'a':
stat->weight |= 1 << 3;