Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
putianyi889 committed Mar 14, 2023
1 parent 2ad12d1 commit c762847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fillalgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,12 @@ end
function +(a::ZerosVector{T}, b::AbstractRange) where {T}
size(a) size(b) && throw(DimensionMismatch("dimensions must match."))
Tout = promote_type(T, eltype(b))
return T(first(b)):T(step(b)):T(last(b))
return Tout(first(b)):Tout(step(b)):Tout(last(b))
end
function +(a::ZerosVector{T}, b::UnitRange) where {T<:Integer}
size(a) size(b) && throw(DimensionMismatch("dimensions must match."))
Tout = promote_type(T, eltype(b))
return AbstractUnitRange{T}(b)
return AbstractUnitRange{Tout}(b)
end

function -(a::ZerosVector, b::AbstractRange)
Expand Down

0 comments on commit c762847

Please sign in to comment.