Skip to content

Commit 18caee9

Browse files
fixup! fix: make some SII impls of IndexCache more type-stable
1 parent 3e79363 commit 18caee9

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
@@ -439,7 +439,7 @@ function SymbolicIndexingInterface.variable_index(ic::IndexCache, sym::SymbolicT
439439
args = arguments(sym)
440440
idx = variable_index(ic, args[1])
441441
idx === nothing && return nothing
442-
return idx[args[2:end]...]
442+
return idx[unwrap_const.(args[2:end])...]
443443
end
444444
SymbolicIndexingInterface.variable_index(ic::IndexCache, sym) = false
445445

0 commit comments

Comments
 (0)