Skip to content

Commit b15d169

Browse files
committed
Merge pull request #65 from ajsecord/fix-conversion-error-64
Fixes #64.
2 parents 86e5deb + 1f933f4 commit b15d169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Ink/src/private/MDCInkLayer.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static inline CGPoint MDCInkLayerRectGetCenter(CGRect rect) {
3131
}
3232

3333
static inline CGFloat MDCInkLayerRectHypotenuse(CGRect rect) {
34-
return hypot(CGRectGetWidth(rect), CGRectGetHeight(rect));
34+
return (CGFloat)hypot(CGRectGetWidth(rect), CGRectGetHeight(rect));
3535
}
3636

3737
static CGFloat const kMDCInkLayerBackgroundOpacityEnterDuration = 0.6f;

0 commit comments

Comments
 (0)