Skip to content

Commit 914e36a

Browse files
committed
Merge pull request #50 from skela/master
Using ABS macro instead of fabsf
2 parents 9a2b842 + 590a8bd commit 914e36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NAMapKit/NAMapView.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ - (void)updateContentOffsetToCenterPoint:(CGPoint)point animated:(BOOL)animate
128128

129129
- (CGPoint)zoomRelativePoint:(CGPoint)point
130130
{
131-
BOOL hasContentSize = fabsf(self.originalSize.width) > 0 && fabsf(self.originalSize.height) > 0;
131+
BOOL hasContentSize = ABS(self.originalSize.width) > 0 && ABS(self.originalSize.height) > 0;
132132
NSAssert(hasContentSize, @"originalSize dimension is zero, will result in NaN in returned value.");
133133

134134
CGFloat x = (self.contentSize.width / self.originalSize.width) * point.x;

0 commit comments

Comments
 (0)