Skip to content

Commit f1cad1c

Browse files
committed
extract float scalar type for bridging
This should fix issue 38 #38
1 parent 9f585a7 commit f1cad1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AImage.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public class AImage {
196196
if (delayObject.floatValue == 0.0){
197197
delayObject = unsafeBitCast(CFDictionaryGetValue($0, Unmanaged.passUnretained(kCGImagePropertyGIFDelayTime).toOpaque()), to: AnyObject.self)
198198
}
199-
return delayObject as! Float
199+
return delayObject.floatValue as Float
200200
}
201201
return frameDelays
202202
}

0 commit comments

Comments
 (0)