summaryrefslogtreecommitdiffstats
path: root/test/swmr_sparse_reader.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-04-24 15:22:28 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:37:19 (GMT)
commit0f2bc7d918cc65faf773853fe203c4f558abc0f4 (patch)
tree4041d9e6f43acbd286d6ade3fe4906aed3c52434 /test/swmr_sparse_reader.c
parentc506a1f4358960f48d640e9f4375cebe2a69b934 (diff)
downloadhdf5-0f2bc7d918cc65faf773853fe203c4f558abc0f4.zip
hdf5-0f2bc7d918cc65faf773853fe203c4f558abc0f4.tar.gz
hdf5-0f2bc7d918cc65faf773853fe203c4f558abc0f4.tar.bz2
Fix `test/swmr_sparse_reader.c:118:77: error: cast from pointer
to integer of different size [-Werror=pointer-to-int-cast]` and `test/snapshots-hdf5/current/test/swmr_sparse_reader.c:129:100: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]`.
Diffstat (limited to 'test/swmr_sparse_reader.c')
-rw-r--r--test/swmr_sparse_reader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/swmr_sparse_reader.c b/test/swmr_sparse_reader.c
index 111682a..75a3c44 100644
--- a/test/swmr_sparse_reader.c
+++ b/test/swmr_sparse_reader.c
@@ -116,7 +116,7 @@ check_dataset(hid_t fid, unsigned verbose, const symbol_info_t *symbol, symbol_t
/* Emit informational message */
if(verbose)
- HDfprintf(stderr, "Symbol = '%s', location = %lld\n", symbol->name, (long long)start);
+ HDfprintf(stderr, "Symbol = '%s', location = %ju,%ju\n", symbol->name, (uintmax_t)start[0], (uintmax_t)start[1]);
/* Read record from dataset */
record->rec_id = UINT64_MAX;
@@ -127,7 +127,7 @@ check_dataset(hid_t fid, unsigned verbose, const symbol_info_t *symbol, symbol_t
if(record->rec_id != start[1]) {
HDfprintf(stderr, "*** ERROR ***\n");
HDfprintf(stderr, "Incorrect record value!\n");
- HDfprintf(stderr, "Symbol = '%s', location = %lld, record->rec_id = %llu\n", symbol->name, (long long)start, (unsigned long long)record->rec_id);
+ HDfprintf(stderr, "Symbol = '%s', location = %ju,%ju, record->rec_id = %" PRIu64 "\n", symbol->name, (uintmax_t)start[0], (uintmax_t)start[1], record->rec_id);
return -1;
} /* end if */