Fix typo in typecasting.
authorTeodor Sigaev <teodor@sigaev.ru>
Thu, 13 Sep 2007 06:54:35 +0000 (06:54 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Thu, 13 Sep 2007 06:54:35 +0000 (06:54 +0000)
patch from  ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>

src/backend/utils/adt/tsrank.c

index d61d7d4063403a7cf4f7491fcd2c08f0ae247459..3fb00cae482b4ce2439125ccc844d5ebde049b1d 100644 (file)
@@ -707,7 +707,7 @@ calc_rank_cd(float4 *arrdata, TSVector txt, TSQuery query, int method)
        }
 
        qr.query = query;
-       qr.operandexist = (int*)palloc0(sizeof(bool) * query->size);
+       qr.operandexist = (bool*)palloc0(sizeof(bool) * query->size);
 
        doc = get_docrep(txt, &qr, &doclen);
        if (!doc)