From 5a205aa3938e54def8b5105d27d70e3c8ba8a8e6 Mon Sep 17 00:00:00 2001 From: Nathan Zimmerberg <39104088+nhz2@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:29:12 -0500 Subject: [PATCH] Fix GC preserve typo in `test/lz4_compression.jl` --- test/lz4_compression.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lz4_compression.jl b/test/lz4_compression.jl index 0580fad..9c31f40 100644 --- a/test/lz4_compression.jl +++ b/test/lz4_compression.jl @@ -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)