Browse Source

Add double mark for compiler check related with issue #4835

Emrah Korkmaz 3 years ago
parent
commit
a9193a7916
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Charts/Animation/ChartAnimationEasing.swift

+ 1 - 1
Source/Charts/Animation/ChartAnimationEasing.swift

@@ -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