Skip to content

Commit 1df88f1

Browse files
committed
use Base.wrap and memoryref for GC safety
1 parent a91b47c commit 1df88f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Filters/filt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function _small_filt_fir_storesi!(
189189
LI = LinearIndices(si)
190190
for col in CartesianIndices(axes(x)[2:end])
191191
@static if VERSION > v"1.12-"
192-
si_vec = unsafe_wrap(Array, pointer(si, LI[1, col]), col_len)
192+
si_vec = Base.wrap(Array, memoryref(si.ref, LI[1, col]), col_len)
193193
else
194194
si_vec = view(si, :, col)
195195
end

0 commit comments

Comments
 (0)