diff --git a/src/MAT_HDF5.jl b/src/MAT_HDF5.jl index fd29e84..2ecd258 100644 --- a/src/MAT_HDF5.jl +++ b/src/MAT_HDF5.jl @@ -632,7 +632,7 @@ function read(obj::HDF5Dataset, ::Type{Array{Bool}}) end # Use the low-level HDF5 API to put the data directly into a Bool array tf = Array{Bool}(undef, size(obj)) - HDF5.h5d_read(obj.id, HDF5.hdf5_type_id(UInt8), tf, obj.xfer) + HDF5.h5d_read(obj.id, HDF5.hdf5_type_id(UInt8), tf, convert(HDF5.Hid, obj.xfer)) return tf end