From: Teodor Sigaev Date: Thu, 13 Sep 2007 06:54:35 +0000 (+0000) Subject: Fix typo in typecasting. X-Git-Tag: REL8_3_BETA1~183 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e805fdcf72683a0cacd0706bcb39e9503813fc4;p=thirdparty%2Fpostgresql.git Fix typo in typecasting. patch from ITAGAKI Takahiro --- diff --git a/src/backend/utils/adt/tsrank.c b/src/backend/utils/adt/tsrank.c index 4530de7fa68..a3c5d77df89 100644 --- a/src/backend/utils/adt/tsrank.c +++ b/src/backend/utils/adt/tsrank.c @@ -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)