Skip to content

Commit 4bfdc90

Browse files
Update src/parameters.jl
Co-authored-by: Aayush Sabharwal <[email protected]>
1 parent d61e3ad commit 4bfdc90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parameters.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ toparam(s::Num) = wrap(toparam(value(s)))
6363
Maps the variable to an unknown.
6464
"""
6565
tovar(s::Symbolic) = setmetadata(s, MTKVariableTypeCtx, VARIABLE)
66-
tovar(s::Union{Num, Symbolics.Arr}) = Num(tovar(value(s)))
66+
tovar(s::Union{Num, Symbolics.Arr}) = wrap(tovar(unwrap(s)))
6767

6868
"""
6969
$(SIGNATURES)

0 commit comments

Comments
 (0)