Skip to content

Commit

Permalink
Pass id rather than object as the 5th argument to h5d_read
Browse files Browse the repository at this point in the history
  • Loading branch information
grero committed Aug 6, 2020
1 parent 377b83b commit 6ea7901
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 @@ -622,7 +622,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, obj.xfer.id)
return tf
end

Expand Down

0 comments on commit 6ea7901

Please sign in to comment.