Skip to content

Commit

Permalink
avoid call-site inlines for julia 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Jun 21, 2024
1 parent 3d99bcb commit abd0666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/period.jl
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ end
Dates.Millisecond(Int64(p.duration))

@inline function Dates.Millisecond(p::Period)
@inline Dates.Millisecond(convert(CFTime.Period{Int64,Val{1}(),Val{-3}()},p))
Dates.Millisecond(convert(CFTime.Period{Int64,Val{1}(),Val{-3}()},p))
end

@inline function Dates.Second(p::Period)
@inline Dates.Second(convert(CFTime.Period{Int64,Val{1}(),Val{0}()},p))
Dates.Second(convert(CFTime.Period{Int64,Val{1}(),Val{0}()},p))
end


Expand Down

0 comments on commit abd0666

Please sign in to comment.