Permalink
Browse files

Fix fabsf warnings for Xcode 6.3+

  • Loading branch information...
1 parent f946139 commit da4d3edea01278a083d8d0eb0a271a4e75519521 @designatednerd committed May 12, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 Library/DNSSwipeableCell.m
@@ -392,7 +392,7 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni
CGPoint velocity = [panGesture velocityInView:self.myContentView];
if (velocity.x > 0) {
return YES;
- } else if (fabsf(velocity.x) > fabsf(velocity.y)) {
+ } else if (fabs(velocity.x) > fabs(velocity.y)) {
return NO;
}
}
@@ -409,7 +409,7 @@ - (void)panThisCell:(UIPanGestureRecognizer *)recognizer
CGPoint velocity = [recognizer velocityInView:self.myContentView];
//Check what direction the swipe is moving by checking the velocity
- BOOL movingHorizontally = fabsf(velocity.y) < fabsf(velocity.x);
+ BOOL movingHorizontally = fabs(velocity.y) < fabs(velocity.x);
switch (recognizer.state) {
case UIGestureRecognizerStateBegan:

0 comments on commit da4d3ed

Please sign in to comment.