Skip to content

Commit 80ac896

Browse files
authored
Merge pull request #331 from mkitti/mkitti-fix-dataspace
Fix use of HDF5._dataspace
2 parents e2ed6e9 + e694b8c commit 80ac896

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "JLD"
22
uuid = "4138dd39-2aa7-5051-a626-17a0bb65d9c8"
3-
version = "0.13.4"
3+
version = "0.13.5"
44

55
[deps]
66
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"

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)