Skip to content

Commit da4d3ed

Browse files
Fix fabsf warnings for Xcode 6.3+
1 parent f946139 commit da4d3ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Library/DNSSwipeableCell.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni
392392
CGPoint velocity = [panGesture velocityInView:self.myContentView];
393393
if (velocity.x > 0) {
394394
return YES;
395-
} else if (fabsf(velocity.x) > fabsf(velocity.y)) {
395+
} else if (fabs(velocity.x) > fabs(velocity.y)) {
396396
return NO;
397397
}
398398
}
@@ -409,7 +409,7 @@ - (void)panThisCell:(UIPanGestureRecognizer *)recognizer
409409
CGPoint velocity = [recognizer velocityInView:self.myContentView];
410410

411411
//Check what direction the swipe is moving by checking the velocity
412-
BOOL movingHorizontally = fabsf(velocity.y) < fabsf(velocity.x);
412+
BOOL movingHorizontally = fabs(velocity.y) < fabs(velocity.x);
413413

414414
switch (recognizer.state) {
415415
case UIGestureRecognizerStateBegan:

0 commit comments

Comments
 (0)