[compilation] [ios] Fixed build.

This commit is contained in:
Ilya Grechuhin 2018-01-31 11:42:58 +03:00 committed by Roman Kuznetsov
parent 9864411e99
commit 4b326ab662

View file

@ -144,7 +144,8 @@ CGFloat angleWithProgress(CGFloat progress) { return 2.0 * M_PI * progress - M_P
progress < 1.0 ? MWMCircularProgressStateProgress : MWMCircularProgressStateCompleted;
[self stopSpinner];
}
CGPoint const center = {self.width / 2.0, self.height / 2.0};
CGPoint const center = {static_cast<CGFloat>(self.width / 2.0),
static_cast<CGFloat>(self.height / 2.0)};
CGFloat const radius = MIN(center.x, center.y) - kLineWidth;
UIBezierPath * path = [UIBezierPath bezierPathWithArcCenter:center
radius:radius