X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Frpn2cql.c;h=692c55a83b57a1739f9c6faf4fe5558b38de7fcf;hb=6b76baf0fb5d0d437caedd8076f77f372d775758;hp=14afc9c1796d06100058a3690c457dd7db3db572;hpb=3a36217ed64fc7c30c3c886d85d4f337fe2f9282;p=yaz-moved-to-github.git diff --git a/src/rpn2cql.c b/src/rpn2cql.c index 14afc9c..692c55a 100644 --- a/src/rpn2cql.c +++ b/src/rpn2cql.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. */ @@ -86,7 +86,7 @@ static int rpn2cql_simple(cql_transform_t ct, sterm = (const char *) term->u.general->buf; break; case Z_Term_numeric: - wrbuf_printf(w, "%d", *term->u.numeric); + wrbuf_printf(w, ODR_INT_PRINTF, *term->u.numeric); break; case Z_Term_characterString: sterm = term->u.characterString; @@ -181,6 +181,7 @@ int cql_transform_rpn2cql_wrbuf(cql_transform_t ct, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab