Skip to content

Commit

Permalink
Fix GC preserve typo in test/lz4_compression.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 authored Nov 19, 2024
1 parent dd510c6 commit 5a205aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lz4_compression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
# Decompression with too-small block_size
output_data = Vector{UInt8}(undef, 1024)
compressed_data = transcode(LZ4FastCompressor, text)
GC.@preserve output_data compressed begin
GC.@preserve output_data compressed_data begin
output = Memory(pointer(output_data), length(output_data))
compressed = Memory(pointer(compressed_data), length(compressed_data))
decompressor = LZ4SafeDecompressor(; block_size = 200)
Expand Down

0 comments on commit 5a205aa

Please sign in to comment.