silence xcode 8.3 warning

This commit is contained in:
miqdad 2017-04-04 12:11:33 +03:00 committed by Reda Lemeden
parent 6eb6f3bf5d
commit ce5d0a4414
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ func CGImageFrameDuration(with imageSource: CGImageSource, atIndex index: Int) -
/// - returns: A capped frame duration.
func capDuration(with duration: Double) -> Double? {
if duration < 0 { return .none }
let threshold = 0.02 - Double(FLT_EPSILON)
let threshold = 0.02 - Double.ulpOfOne
let cappedDuration = duration < threshold ? 0.1 : duration
return cappedDuration
}

View File

@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>125</string>
<string>126</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>