Skip to content

Commit

Permalink
Add back one of the subtract methods
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Jan 26, 2017
1 parent 760e859 commit db31d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/dates/arithmetic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ for op in (:+, :-)
@eval begin
($op){T<:TimeType}(x::AbstractArray{T}, y::GeneralPeriod) = broadcast($op, x, y)
($op){P<:GeneralPeriod}(y::TimeType, x::StridedArray{P}) = broadcast($op, x, y)
($op){T<:TimeType,P<:GeneralPeriod}(x::StridedArray{P}, y::T) = broadcast($op, x, y)
end
if op == :+
@eval begin
($op){T<:TimeType}(y::GeneralPeriod, x::AbstractArray{T}) = broadcast($op, x, y)
($op){T<:TimeType,P<:GeneralPeriod}(x::StridedArray{P}, y::T) = broadcast($op, x, y)
end
end
end
Expand Down

0 comments on commit db31d92

Please sign in to comment.