Skip to content

Commit e01e925

Browse files
committed
Fix use of HDF5._dataspace
1 parent e2ed6e9 commit e01e925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JLD.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ function getindex(dset::JldDataset, indices::Union{AbstractRange{Int},Integer}..
761761
sz = map(length, indices)
762762
dsel = HDF5.hyperslab(dset.plain, indices...)
763763
try
764-
dspace = HDF5._dataspace(sz)
764+
dspace = HDF5.dataspace(sz)
765765
try
766766
return read_array(dset, datatype(dset.plain), dspace.id, dsel.id, sz)
767767
finally
@@ -791,7 +791,7 @@ function setindex!(dset::JldDataset, X::AbstractArray{T,N}, indices::Union{Abstr
791791
buf = h5convert_array(f, convert(Array{written_eltype,N}, X), jldtype,
792792
JldWriteSession())
793793

794-
dspace = HDF5._dataspace(sz)
794+
dspace = HDF5.dataspace(sz)
795795
try
796796
HDF5.API.h5d_write(dset.plain.id, dtype, dspace, dsel_id, HDF5.API.H5P_DEFAULT, buf)
797797
finally

0 commit comments

Comments
 (0)