X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Frpn2cql.c;h=692c55a83b57a1739f9c6faf4fe5558b38de7fcf;hb=8356ea58313ee1f350226172cf99bfb0b7c5583c;hp=7a5b9cad285c372428006a47f1f40f887af34c84;hpb=8e9d2cec97def1cd8b89b1fe427f1a232661ec6f;p=yaz-moved-to-github.git diff --git a/src/rpn2cql.c b/src/rpn2cql.c index 7a5b9ca..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; @@ -99,7 +99,7 @@ static int rpn2cql_simple(cql_transform_t ct, if (term) { - int i; + size_t i; int must_quote = 0; for (i = 0 ; i < lterm; i++) if (sterm[i] == ' ') @@ -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