Skip to content

Commit

Permalink
Merge pull request JuliaIO#141 from grero/idfix
Browse files Browse the repository at this point in the history
Pass id rather than object as the 5th argument to h5d_read
  • Loading branch information
musm authored Sep 4, 2020
2 parents 33123dc + 0654a12 commit 57b8483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MAT_HDF5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 57b8483

Please sign in to comment.