mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-16 17:31:05 +00:00
Fix Xcode 6.3 Beta compiler warnings
This commit is contained in:
@@ -97,8 +97,8 @@
|
||||
}
|
||||
|
||||
|
||||
if (abs(CGRectGetWidth(boundRect)) < 30 || abs(CGRectGetHeight(boundRect)) < 30){
|
||||
CGFloat smallerOne = MIN(abs(CGRectGetHeight(boundRect)), abs(CGRectGetWidth(boundRect)));
|
||||
if (fabs(CGRectGetWidth(boundRect)) < 30 || fabs(CGRectGetHeight(boundRect)) < 30){
|
||||
CGFloat smallerOne = MIN(fabs(CGRectGetHeight(boundRect)), fabs(CGRectGetWidth(boundRect)));
|
||||
|
||||
CGFloat factor = smallerOne/30.f;
|
||||
|
||||
|
||||
@@ -606,7 +606,7 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
|
||||
if (!self.checkInProgress) {
|
||||
|
||||
if (!_lastUpdateCheckFromBlockingScreen ||
|
||||
abs([NSDate timeIntervalSinceReferenceDate] - [_lastUpdateCheckFromBlockingScreen timeIntervalSinceReferenceDate]) > 60) {
|
||||
fabs([NSDate timeIntervalSinceReferenceDate] - [_lastUpdateCheckFromBlockingScreen timeIntervalSinceReferenceDate]) > 60) {
|
||||
_lastUpdateCheckFromBlockingScreen = [NSDate date];
|
||||
[self checkForUpdateShowFeedback:NO];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user