From: Adam Dickmeiss Date: Tue, 19 Jan 2010 13:58:14 +0000 (+0100) Subject: Fix casts (sort) X-Git-Tag: v2.0.44~11^2~10 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=c00021ca63c39b965a6c02c51f56d359b9cba4b3;p=idzebra-moved-to-github.git Fix casts (sort) --- diff --git a/index/rpnsearch.c b/index/rpnsearch.c index 69a7e9a..543f61c 100644 --- a/index/rpnsearch.c +++ b/index/rpnsearch.c @@ -1977,7 +1977,7 @@ static ZEBRA_RES rpn_sort_spec(ZebraHandle zh, Z_AttributesPlusTerm *zapt, sk->u.sortAttributes->id = odr_oiddup_nmem(stream, attributeSet); sk->u.sortAttributes->list = zapt->attributes; - sks->sortRelation = (int *) + sks->sortRelation = (Odr_int *) nmem_malloc(stream, sizeof(*sks->sortRelation)); if (sort_relation_value == 1) *sks->sortRelation = Z_SortKeySpec_ascending; @@ -1986,7 +1986,7 @@ static ZEBRA_RES rpn_sort_spec(ZebraHandle zh, Z_AttributesPlusTerm *zapt, else *sks->sortRelation = Z_SortKeySpec_ascending; - sks->caseSensitivity = (int *) + sks->caseSensitivity = (Odr_int *) nmem_malloc(stream, sizeof(*sks->caseSensitivity)); *sks->caseSensitivity = 0;