summaryrefslogtreecommitdiffstats
path: root/HDF5Examples/C
diff options
context:
space:
mode:
Diffstat (limited to 'HDF5Examples/C')
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_convert.c2
-rw-r--r--HDF5Examples/C/H5T/h5ex_t_opaque.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/HDF5Examples/C/H5T/h5ex_t_convert.c b/HDF5Examples/C/H5T/h5ex_t_convert.c
index b6f46b6..b7036e3 100644
--- a/HDF5Examples/C/H5T/h5ex_t_convert.c
+++ b/HDF5Examples/C/H5T/h5ex_t_convert.c
@@ -120,7 +120,7 @@ main(void)
* Output the data to the screen.
*/
for (i = 0; i < DIM0; i++) {
- printf("sensor[%d]:\n", i);
+ printf("sensor[%" PRIuHSIZE "]:\n", i);
printf("Serial number : %d\n", sensor[i].serial_no);
printf("Location : %s\n", sensor[i].location);
printf("Temperature (F) : %f\n", sensor[i].temperature);
diff --git a/HDF5Examples/C/H5T/h5ex_t_opaque.c b/HDF5Examples/C/H5T/h5ex_t_opaque.c
index 085183a..11a58ae 100644
--- a/HDF5Examples/C/H5T/h5ex_t_opaque.c
+++ b/HDF5Examples/C/H5T/h5ex_t_opaque.c
@@ -111,7 +111,7 @@ main(void)
*/
printf("Datatype tag for %s is: \"%s\"\n", DATASET, tag);
for (i = 0; i < dims[0]; i++) {
- printf("%s[%u]: ", DATASET, i);
+ printf("%s[%" PRIuHSIZE "]: ", DATASET, i);
for (j = 0; j < len; j++)
printf("%c", rdata[j + i * len]);
printf("\n");