X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Frpn2cql.c;h=68b359af063d8f80ed9ad394121b117cc4ce9b2d;hb=46767b31f38d6b9a1964319c5473c948dbb10c1d;hp=ef5494460a99f42914f50eabc4551e75b14887a3;hpb=2d93f6df5a0d595628e2a61304ad0024a54775dd;p=yaz-moved-to-github.git 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 */ }