summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/query_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tsearch2/query_support.c')
-rw-r--r--contrib/tsearch2/query_support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tsearch2/query_support.c b/contrib/tsearch2/query_support.c
index dfdd7140739..0fc6fe334d2 100644
--- a/contrib/tsearch2/query_support.c
+++ b/contrib/tsearch2/query_support.c
@@ -144,9 +144,9 @@ CompareTSQ(QUERYTYPE * a, QUERYTYPE * b)
{
return (a->size < b->size) ? -1 : 1;
}
- else if (a->len != b->len)
+ else if (VARSIZE(a) != VARSIZE(b))
{
- return (a->len < b->len) ? -1 : 1;
+ return (VARSIZE(a) < VARSIZE(b)) ? -1 : 1;
}
else
{