Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #223 from Snwspeckle/master
Browse files Browse the repository at this point in the history
Fixed 2 [-Wabsolute-value] warnings
  • Loading branch information
pkluz committed Apr 10, 2015
2 parents 94a18d6 + 5585c8c commit 9bb8b16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/PKRevealController/PKRevealController.m
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ - (CGFloat)dampenedValueForRealValue:(CGFloat)realValue inRange:(NSRange)absolut
{
BOOL isNegative = (realValue < 0);

realValue = fabsf(realValue);
realValue = fabs(realValue);

// PKLog(@"Range: [%u, %u], Real Value: %f", absoluteRange.location, (absoluteRange.location + absoluteRange.length), realValue);

Expand Down Expand Up @@ -1061,7 +1061,7 @@ - (BOOL)shouldMoveFrontViewRightwardsForVelocity:(CGFloat)velocity

- (BOOL)shouldMoveFrontViewLeftwardsForVelocity:(CGFloat)velocity
{
return (velocity < 0 && fabsf(velocity) > self.quickSwipeVelocity);
return (velocity < 0 && fabs(velocity) > self.quickSwipeVelocity);
}

#pragma mark - View Controller Containment
Expand Down

0 comments on commit 9bb8b16

Please sign in to comment.