From f4b1bc3e6ed89c437c1bf15eae2ee87751de05c0 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Tue, 26 Mar 2024 16:53:35 +0530 Subject: [PATCH] fix: fix `remake_buffer` bug --- src/remake.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remake.jl b/src/remake.jl index f53b2b24..d1f19724 100644 --- a/src/remake.jl +++ b/src/remake.jl @@ -23,7 +23,7 @@ function remake_buffer(sys, oldbuffer::AbstractArray, vals::Dict) end newbuffer = similar(oldbuffer, elT) - setu(sys, keys(vals))(newbuffer, values(vals)) + setu(sys, collect(keys(vals)))(newbuffer, values(vals)) else mutbuffer = remake_buffer(sys, collect(oldbuffer), vals) newbuffer = similar_type(oldbuffer, eltype(mutbuffer))(mutbuffer)