Skip to content

Commit e8ef3d4

Browse files
authored
Merge pull request #248 from adamslc/domain_error
Fix domain error in Mul with literal base and power
2 parents 7439956 + 8293481 commit e8ef3d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ operation(a::Mul) = *
729729

730730
function arguments(a::Mul)
731731
a.sorted_args_cache[] !== nothing && return a.sorted_args_cache[]
732-
args = sort!([k^v for (k,v) in a.dict], lt=<ₑ)
732+
args = sort!([Pow(k, v) for (k,v) in a.dict], lt=<ₑ)
733733
a.sorted_args_cache[] = isone(a.coeff) ? args : vcat(a.coeff, args)
734734
end
735735

0 commit comments

Comments
 (0)