Skip to content

Commit 3330699

Browse files
fixup! fix: make IndexCache constructor more type-stable
1 parent 91b7c29 commit 3330699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/index_cache.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function IndexCache(sys::AbstractSystem)
9292
push!(found_array_syms, arrsym)
9393
valid_arrsym || break
9494
if idxs == idxs[begin]:idxs[end]
95-
idxs = reshape(idxs[begin]:idxs[end], size(idxs))::AbstractArray{Int}
95+
idxs = reshape(idxs[begin]:idxs[end], size(arrsym))::AbstractArray{Int}
9696
else
9797
idxs = reshape(idxs, size(arrsym))::AbstractArray{Int}
9898
end

0 commit comments

Comments
 (0)