diff options
author | David Young <dyoung@hdfgroup.org> | 2022-03-10 19:54:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 19:54:20 (GMT) |
commit | 1fb3743f04df101c7245ce045b67d371d462fd70 (patch) | |
tree | b7336b3d48e8016e3967b9175223b4230149bd9c /test | |
parent | b9470be379354af209daf8418b6c571dde99e776 (diff) | |
download | hdf5-1fb3743f04df101c7245ce045b67d371d462fd70.zip hdf5-1fb3743f04df101c7245ce045b67d371d462fd70.tar.gz hdf5-1fb3743f04df101c7245ce045b67d371d462fd70.tar.bz2 |
Fix JNI bug, fix warnings noticed in MSVC CI, be modern & portable (#1480)
Diffstat (limited to 'test')
-rw-r--r-- | test/external.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/external.c b/test/external.c index 11185b3..bb86cde 100644 --- a/test/external.c +++ b/test/external.c @@ -166,8 +166,7 @@ test_non_extendible(hid_t file) if (file_size != (max_size[0] * sizeof(int))) { H5_FAILED(); HDputs(" Wrong file size."); - HDprintf(" got: %lu\n ans: %lu\n", (unsigned long)file_size, - (unsigned long)max_size[0] * sizeof(int)); + HDprintf(" got: %" PRIuHSIZE "\n ans: %" PRIuHSIZE "\n", file_size, max_size[0] * sizeof(int)); goto error; } @@ -986,11 +985,11 @@ test_path_absolute(hid_t fapl) if (NULL == HDgetcwd(cwdpath, sizeof(cwdpath))) TEST_ERROR for (i = 0; i < N_EXT_FILES; i++) { - HDsnprintf(filename, sizeof(filename), "%s%sextern_%dr.raw", cwdpath, H5_DIR_SEPS, (int)i + 1); + HDsnprintf(filename, sizeof(filename), "%s%sextern_%zur.raw", cwdpath, H5_DIR_SEPS, i + 1); #if defined(H5_HAVE_WINDOW_PATH) /* For windows, test path-absolute case (\dir\file.raw) for the second file */ if (i == 1) - HDsnprintf(filename, sizeof(filename), "%s%sextern_%dr.raw", cwdpath + 2, H5_DIR_SEPS, i + 1); + HDsnprintf(filename, sizeof(filename), "%s%sextern_%zur.raw", cwdpath + 2, H5_DIR_SEPS, i + 1); #endif if (H5Pset_external(dcpl, filename, (off_t)(i * GARBAGE_PER_FILE), (hsize_t)sizeof(part)) < 0) FAIL_STACK_ERROR |