We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad12d1 commit c762847Copy full SHA for c762847
src/fillalgebra.jl
@@ -253,12 +253,12 @@ end
253
function +(a::ZerosVector{T}, b::AbstractRange) where {T}
254
size(a) ≠ size(b) && throw(DimensionMismatch("dimensions must match."))
255
Tout = promote_type(T, eltype(b))
256
- return T(first(b)):T(step(b)):T(last(b))
+ return Tout(first(b)):Tout(step(b)):Tout(last(b))
257
end
258
function +(a::ZerosVector{T}, b::UnitRange) where {T<:Integer}
259
260
261
- return AbstractUnitRange{T}(b)
+ return AbstractUnitRange{Tout}(b)
262
263
264
function -(a::ZerosVector, b::AbstractRange)
0 commit comments