Skip to content

Commit

Permalink
Add double mark for compiler check related with issue ChartsOrg#4835
Browse files Browse the repository at this point in the history
  • Loading branch information
eliakorkmaz authored and mmazzei committed Feb 1, 2023
1 parent 486e5c2 commit b0b31f1
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 b0b31f1

Please sign in to comment.