Commit f35e8d84 authored by Teodor Sigaev's avatar Teodor Sigaev

Fix silly bug

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