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 4530de7fa68ce9162c73508b66c4503a02e9788c..a3c5d77df89f1b3037e431fc58fe878e271704c8 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/utils/adt/tsrank.c,v 1.6 2007/09/11 16:01:40 teodor Exp $
+ *       $PostgreSQL: pgsql/src/backend/utils/adt/tsrank.c,v 1.7 2007/09/13 06:54:35 teodor Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -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)