Skip to content

Commit

Permalink
Merge pull request #1178 from JuliaSymbolics/b/modelingtoolkit-precom…
Browse files Browse the repository at this point in the history
…pile-head

Fix: Resolve `head` ambiguity and prevent `UndefVarError` and precompilation failure
  • Loading branch information
bowenszhu committed Jun 24, 2024
2 parents e4c3281 + 0d68316 commit fa83aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function diff2term(O, O_metadata::Union{Dict, Nothing, Base.ImmutableDict}=nothi
d_separator = 'ˍ'

if ds === nothing
return maketerm(typeof(O), head(O), map(diff2term, children(O)),
return maketerm(typeof(O), TermInterface.head(O), map(diff2term, children(O)),
symtype(O), O_metadata isa Nothing ?
metadata(O) : Base.ImmutableDict(metadata(O)..., O_metadata...))
else
Expand Down

0 comments on commit fa83aa4

Please sign in to comment.