Skip to content

Commit c762847

Browse files
committed
fix
1 parent 2ad12d1 commit c762847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fillalgebra.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,12 @@ end
253253
function +(a::ZerosVector{T}, b::AbstractRange) where {T}
254254
size(a) size(b) && throw(DimensionMismatch("dimensions must match."))
255255
Tout = promote_type(T, eltype(b))
256-
return T(first(b)):T(step(b)):T(last(b))
256+
return Tout(first(b)):Tout(step(b)):Tout(last(b))
257257
end
258258
function +(a::ZerosVector{T}, b::UnitRange) where {T<:Integer}
259259
size(a) size(b) && throw(DimensionMismatch("dimensions must match."))
260260
Tout = promote_type(T, eltype(b))
261-
return AbstractUnitRange{T}(b)
261+
return AbstractUnitRange{Tout}(b)
262262
end
263263

264264
function -(a::ZerosVector, b::AbstractRange)

0 commit comments

Comments
 (0)