Use PRIuHSIZE and PRIXHSIZE for portability.

This commit is contained in:
David Young 2020-04-24 18:50:59 -05:00
parent 4e41ca05aa
commit 23bbe96c75

View File

@ -2088,7 +2088,7 @@ h5_compare_file_bytes(char *f1name, char *f2name)
f2size = HDftell(f2ptr);
if (f1size != f2size) {
HDfprintf(stderr, "Files differ in size, %llu vs. %llu\n", f1size, f2size);
HDfprintf(stderr, "Files differ in size, %" PRIuHSIZE " vs. %" PRIuHSIZE "\n", f1size, f2size);
ret_value = -1;
goto done;
}
@ -2100,7 +2100,7 @@ h5_compare_file_bytes(char *f1name, char *f2name)
HDfread(&f1char, 1, 1, f1ptr);
HDfread(&f2char, 1, 1, f2ptr);
if (f1char != f2char) {
HDfprintf(stderr, "Mismatch @ 0x%llX: 0x%X != 0x%X\n", ii, f1char, f2char);
HDfprintf(stderr, "Mismatch @ 0x%" PRIXHSIZE ": 0x%X != 0x%X\n", ii, f1char, f2char);
ret_value = -1;
goto done;
}