Skip to content

Commit

Permalink
Fix Xcode 14 compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehouse committed Sep 8, 2022
1 parent 7f9d3c8 commit 9d8e9c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Charts/Animation/ChartAnimationEasing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ internal struct EasingFunctions
let s: TimeInterval = 1.70158
var position: TimeInterval = elapsed / duration
position -= 1.0
return Double( position * position * ((s + 1.0) * position + s) + 1.0 )
return Double( position * position * ((s + Double(1.0)) * position + s) + Double(1.0) )
}

internal static let EaseInOutBack = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in
Expand Down

0 comments on commit 9d8e9c9

Please sign in to comment.