Skip to content

Commit 25a93ac

Browse files
authored
Apply suggestion from @glwagner
1 parent 17cc969 commit 25a93ac

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/pipeline.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ function pipeline_encode(p::V2Pipeline, data::AbstractArray, fill_value)
88
if p.compressor isa NoCompressor && p.filters === nothing
99
n = sizeof(data)
1010
out = Vector{UInt8}(undef, n)
11-
GC.@preserve out data unsafe_copyto!(pointer(out),
12-
Ptr{UInt8}(pointer(data)), n)
11+
GC.@preserve out data unsafe_copyto!(pointer(out), Ptr{UInt8}(pointer(data)), n)
1312
return out
1413
end
1514
if fill_value !== nothing && all(isequal(fill_value), data)

0 commit comments

Comments
 (0)