Skip to content

Commit 5abdb20

Browse files
fix: fix accidental narrowing of nonnumeric buffer
1 parent cf6a8d0 commit 5abdb20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/parameter_buffer.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function MTKParameters(
151151
if !isempty(nonnumeric_buffer)
152152
nonnumeric_buffer = map(nonnumeric_buffer) do buf
153153
SymbolicUtils.Code.create_array(
154-
container_type, nothing, Val(1), Val(length(buf)), buf...)
154+
container_type, eltype(buf), Val(1), Val(length(buf)), buf...)
155155
end
156156
end
157157

0 commit comments

Comments
 (0)