1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
From: Michael R. Crusoe <crusoe@debian.org>
Subject: Fix format arguments to match the data types
--- r-bioc-rhdf5.orig/src/utils.c
+++ r-bioc-rhdf5/src/utils.c
@@ -8,7 +8,7 @@
memset(tmp, '\0',1000);
strncpy(tmp, s1, 999);
- snprintf(s1, 1000, "%.977s%llu%.3s", tmp, next_dim, index ? " x " : "");
+ snprintf(s1, 1000, "%.977s%lu%.3s", tmp, next_dim, index ? " x " : "");
}
void concatdim_native(char *s1, hsize_t next_dim, int index)
@@ -17,7 +17,7 @@
memset(tmp, '\0',1000);
strncpy(tmp, s1, 999);
- snprintf(s1, 1000, "%.977s%.3s%llu", tmp, index ? " x " : "", next_dim);
+ snprintf(s1, 1000, "%.977s%.3s%lu", tmp, index ? " x " : "", next_dim);
}
|