projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make yaz_thread functions work on Windows
[yaz-moved-to-github.git]
/
src
/
logrpn.c
diff --git
a/src/logrpn.c
b/src/logrpn.c
index
1a37e0f
..
e70db5f
100644
(file)
--- 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
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)
break;
case 3:
switch (value)
@@
-170,9
+170,10
@@
static void attrStr(Odr_int type, Odr_int value, char *str)
break;
}
if (*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
else
- sprintf(str, "%d=%d", type, value);
+ sprintf(str, ODR_INT_PRINTF "=" ODR_INT_PRINTF, type, value);
}
/*
}
/*