Skip to content

Commit

Permalink
Fixes for Julia 1.11 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 authored Oct 30, 2024
1 parent 8ae9ca9 commit 87bfb21
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/classic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,14 @@ function write_finish(patch::ClassicPatch)
for stream in (patch.ctrl, patch.diff, patch.data)
write(stream, TranscodingStreams.TOKEN_END)
end
write_int(patch.io, patch.ctrl.stream.size)
write_int(patch.io, patch.diff.stream.size)
ctrl_v = take!(patch.ctrl.stream)
diff_v = take!(patch.diff.stream)
data_v = take!(patch.data.stream)
write_int(patch.io, length(ctrl_v))
write_int(patch.io, length(diff_v))
write_int(patch.io, patch.new_size)
for stream in (patch.ctrl, patch.diff, patch.data)
write(patch.io, resize!(stream.stream.data, stream.stream.size))
for v in (ctrl_v, diff_v, data_v)
write(patch.io, v)
end
flush(patch.io)
finalize(patch)
Expand Down

0 comments on commit 87bfb21

Please sign in to comment.