Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasIsensee committed Aug 16, 2021
1 parent d3988d0 commit 0bdd069
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/JLD2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ mutable struct JLDFile{T<:IO}
datatype_locations::OrderedDict{RelOffset,CommittedDatatype}
datatypes::Vector{H5Datatype}
datatype_wsession::JLDWriteSession{Dict{UInt,RelOffset}}
jlh5type::IdDict
h5jltype::IdDict
jloffset::Dict{RelOffset,WeakRef}
jlh5type::IdDict # Julia Type → H5Type
h5jltype::IdDict # H5Type → Julia Type
jloffset::Dict{RelOffset,WeakRef} # Cache for (mutable) loaded objects
end_of_data::Int64
global_heaps::Dict{RelOffset,GlobalHeap}
global_heap::GlobalHeap
Expand Down Expand Up @@ -374,7 +374,7 @@ function load_datatypes(f::JLDFile)
end

function load_all_juliatypes(f::JLDFile)
length(f.juliatypes_group) == length(f.datatype_locations_rev) && return
length(f.juliatypes_group) == length(f.juliatype_locations_rev) && return
for offset in values(f.juliatypes_group.written_links)
dt = load_dataset(f, offset)
f.datatype_locations[offset] = dt
Expand Down

0 comments on commit 0bdd069

Please sign in to comment.