Skip to content

Commit

Permalink
force specialisation on ODR
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Isensee committed Nov 6, 2024
1 parent df08293 commit b44ba60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/io/dataio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ function write_data(io::MemoryBackedIO, f::JLDFile, data::Array, odr, ::Referenc
nothing
end

function write_data(io::MemoryBackedIO, f::JLDFile, data::Array, odr, ::HasReferences, wsession::JLDWriteSession)
function write_data(io::MemoryBackedIO, f::JLDFile, data::Array, odr::ODR, ::HasReferences, wsession::JLDWriteSession) where ODR
ensureroom(io, odr_sizeof(odr) * length(data))
cp = IndirectPointer(io)

for i = eachindex(data)
if isassigned(data, i)
h5convert!(cp, odr, f, data[i], wsession)
Expand Down Expand Up @@ -273,4 +273,4 @@ function read_array!(v::Array{T}, f::JLDFile{MmapIO}, ::SameRepr{T}) where T
end
io.curptr = inptr + nb
v
end
end

0 comments on commit b44ba60

Please sign in to comment.