Skip to content

Commit f172d89

Browse files
committed
Fix incorrect promotion in bidiagonal backslash.
1 parent c671df9 commit f172d89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/linalg/bidiag.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ function naivesub!{T}(A::Bidiagonal{T}, b::AbstractVector, x::AbstractVector = b
263263
end
264264

265265
function \{T,S}(A::Bidiagonal{T}, B::AbstractVecOrMat{S})
266-
TS = typeof(zero(T)*zero(S) + zero(T)*zero(S))
266+
TS = typeof((zero(T)*zero(S) + zero(T)*zero(S))/one(T))
267267
TS == S ? A_ldiv_B!(A, copy(B)) : A_ldiv_B!(A, convert(AbstractArray{TS}, B))
268268
end
269269

0 commit comments

Comments
 (0)