Skip to content

Commit 307b309

Browse files
committed
Fix 1.14 function diff
1 parent 76172a5 commit 307b309

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

hdf5/src/hl/chunks.rs

+5-8
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub(crate) fn get_num_chunks(ds: &Dataset) -> Option<usize> {
6565
}))
6666
}
6767

68-
#[cfg(feature = "1.13.0")]
68+
#[cfg(feature = "1.14.0")]
6969
mod one_thirteen {
7070
use super::*;
7171
use hdf5_sys::h5d::H5Dchunk_iter;
@@ -103,7 +103,8 @@ mod one_thirteen {
103103
}
104104

105105
extern "C" fn chunks_callback<F>(
106-
offset: *const hsize_t, filter_mask: u32, addr: haddr_t, nbytes: u32, op_data: *mut c_void,
106+
offset: *const hsize_t, filter_mask: c_uint, addr: haddr_t, size: hsize_t,
107+
op_data: *mut c_void,
107108
) -> herr_t
108109
where
109110
F: FnMut(ChunkInfoBorrowed) -> i32,
@@ -116,12 +117,8 @@ mod one_thirteen {
116117

117118
let offset = std::slice::from_raw_parts(offset, ndims);
118119

119-
let info = ChunkInfoBorrowed {
120-
offset,
121-
filter_mask,
122-
addr: addr as u64,
123-
size: nbytes as u64,
124-
};
120+
let info =
121+
ChunkInfoBorrowed { offset, filter_mask, addr: addr as u64, size: size as u64 };
125122

126123
callback(info)
127124
})

0 commit comments

Comments
 (0)