summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/H5.c b/src/H5.c
index 4e48221..68838b2 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -535,7 +535,7 @@ HDfprintf (FILE *stream, const char *fmt, ...)
}
/* Type modifier */
- if (strchr ("Hhlq", *s)) {
+ if (strchr ("ZHhlq", *s)) {
switch (*s) {
case 'H':
if (sizeof(hsize_t)==sizeof(long)) {
@@ -544,6 +544,16 @@ HDfprintf (FILE *stream, const char *fmt, ...)
strcpy (modifier, PRINTF_LL_WIDTH);
}
break;
+ case 'Z':
+ if (sizeof(size_t)==sizeof(long)) {
+ strcpy (modifier, "l");
+ } else if (sizeof(size_t)==sizeof(long long)) {
+ strcpy (modifier, PRINTF_LL_WIDTH);
+ } else if (sizeof(size_t)==sizeof(int)) {
+ modifier[0] = '\0';
+ }
+ break;
+
default:
modifier[0] = *s;
modifier[1] = '\0';