X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Frpn2cql.c;h=68b359af063d8f80ed9ad394121b117cc4ce9b2d;hp=ef5494460a99f42914f50eabc4551e75b14887a3;hb=b6aa93dcb5c07ed09b664c006b5f33b0135a0854;hpb=2db517d64ac08da1f812f33812cf58f6aeb905e3 diff --git a/src/rpn2cql.c b/src/rpn2cql.c index ef54944..68b359a 100644 --- a/src/rpn2cql.c +++ b/src/rpn2cql.c @@ -168,10 +168,10 @@ static int checkForTruncation(int flag, Z_AttributeList *attributes) { if (ae->which == Z_AttributeValue_numeric) { - int truncation = *(ae->value.numeric); + Odr_int truncation = *(ae->value.numeric); /* This logic only works for Left, right and both. eg. 1,2,3 */ if (truncation <= 3) - return (int) (truncation & flag); + return ((int) truncation & flag); } /* Complex: Shouldn't happen */ }