diff options
author | David Young <dyoung@hdfgroup.org> | 2020-04-24 23:49:37 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-04-24 23:49:37 (GMT) |
commit | d16eb45d536bd13ca3cf1b0bdc76c58d95d13f17 (patch) | |
tree | 8e6f0a684fea5d2150e5e53931310fc973f143a6 /test | |
parent | 737a28dc9700137f6deba34bc2419b5ea8df5900 (diff) | |
download | hdf5-d16eb45d536bd13ca3cf1b0bdc76c58d95d13f17.zip hdf5-d16eb45d536bd13ca3cf1b0bdc76c58d95d13f17.tar.gz hdf5-d16eb45d536bd13ca3cf1b0bdc76c58d95d13f17.tar.bz2 |
For compatibility with non-C99 Visual Studio versions, use "%" PRIuMAX
instead of "%ju".
Diffstat (limited to 'test')
-rw-r--r-- | test/swmr_sparse_reader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/swmr_sparse_reader.c b/test/swmr_sparse_reader.c index 704e463..2d558df 100644 --- a/test/swmr_sparse_reader.c +++ b/test/swmr_sparse_reader.c @@ -115,7 +115,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 = %ju,%ju\n", symbol->name, (uintmax_t)start[0], (uintmax_t)start[1]); + HDfprintf(stderr, "Symbol = '%s', location = %" PRIuMAX ",%" PRIuMAX "\n", symbol->name, (uintmax_t)start[0], (uintmax_t)start[1]); /* Read record from dataset */ record->rec_id = (uint64_t)ULLONG_MAX; @@ -126,7 +126,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 = %ju,%ju, record->rec_id = %" PRIu64 "\n", symbol->name, (uintmax_t)start[0], (uintmax_t)start[1], record->rec_id); + HDfprintf(stderr, "Symbol = '%s', location = %" PRIuMAX ",%" PRIuMAX ", record->rec_id = %" PRIu64 "\n", symbol->name, (uintmax_t)start[0], (uintmax_t)start[1], record->rec_id); return -1; } /* end if */ |