From c5a81c4eb35bcab571d42f4e02a69e4ed76dc20b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 19 Jan 2010 21:36:47 +0100 Subject: [PATCH] Fix print in logrpn --- src/logrpn.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/logrpn.c b/src/logrpn.c index 1a37e0f..e70db5f 100644 --- a/src/logrpn.c +++ b/src/logrpn.c @@ -48,7 +48,7 @@ static void attrStr(Odr_int type, Odr_int value, char *str) if (rstr) sprintf(str, "relation=%s", rstr); else - sprintf(str, "relation=%d", value); + sprintf(str, "relation=" ODR_INT_PRINTF, value); break; case 3: switch (value) @@ -170,9 +170,10 @@ static void attrStr(Odr_int type, Odr_int value, char *str) break; } if (*str) - sprintf(str + strlen(str), " (%d=%d)", type, value); + sprintf(str + strlen(str), " (" ODR_INT_PRINTF "=" ODR_INT_PRINTF")", + type, value); else - sprintf(str, "%d=%d", type, value); + sprintf(str, ODR_INT_PRINTF "=" ODR_INT_PRINTF, type, value); } /* -- 1.7.10.4