diff --git a/contrib/tsearch2/query_gist.c b/contrib/tsearch2/query_gist.c index d87a5d8d01..b3a5b50111 100644 --- a/contrib/tsearch2/query_gist.c +++ b/contrib/tsearch2/query_gist.c @@ -29,7 +29,7 @@ makesign(QUERYTYPE * a) for (i = 0; i < a->size; i++) { if (ptr->type == VAL) - sign |= 1 << (ptr->val % SIGLEN); + sign |= ((TPQTGist)1) << (ptr->val % SIGLEN); ptr++; }