Skip to content

Commit 4b55128

Browse files
shashiYingboMa
andcommitted
fix type inf in /
Co-authored-by: "Yingbo Ma" <[email protected]>
1 parent f7c074c commit 4b55128

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
@@ -602,7 +602,7 @@ mul_t(a) = promote_symtype(*, symtype(a))
602602
*(b::SN, a::Number) = iszero(a) ? a : isone(a) ? b : Mul(mul_t(a, b), makemul(1,a, b)...)
603603

604604
function /(a::Union{SN,Number}, b::SN)
605-
a * Mul(promote_symtype(/, 1, symtype(b)), makemul(-1, 1, b)...)
605+
a * Mul(promote_symtype(/, Int, symtype(b)), makemul(-1, 1, b)...)
606606
end
607607

608608
\(a::SN, b::Union{Number, SN}) = b / a

0 commit comments

Comments
 (0)