Skip to content

Commit

Permalink
Fix reading non-pointerfree immutables since JuliaLang/julia#10579
Browse files Browse the repository at this point in the history
  • Loading branch information
simonster committed Apr 2, 2015
1 parent 5075945 commit 72d3716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jld_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ function _gen_jlconvert_immutable(typeinfo::JldTypeInfo, T::ANY)
quote
function jlconvert(::Type{$T}, file::JldFile, ptr::Ptr)
out = ccall(:jl_new_struct_uninit, Any, (Any,), $T)::$T
jlconvert!(pointer_from_objref(out)+sizeof(Int), $T, file, ptr)
jlconvert!(pointer_from_objref(out)+$(VERSION >= v"0.4.0-dev+3923" ? 0 : sizeof(Int)), $T, file, ptr)
out
end
end
Expand Down

0 comments on commit 72d3716

Please sign in to comment.