mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-09 07:32:32 +08:00
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]`.
This commit is contained in:
parent
26e640da7e
commit
737a28dc97
@ -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 = %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_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 = %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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user