Skip to content
Browse files

Shut up a warning.

  • Loading branch information...
1 parent dfc3f41 commit 038eb23eb438d9fce316d9d494c54f350bdffbda @uliwitness committed Aug 2, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 ULIPaintTool.m
View
4 ULIPaintTool.m
@@ -93,8 +93,8 @@ -(NSRect) rectFrom: (NSPoint)prevPos to: (NSPoint)currPos
box.origin.x = currPos.x;
if( box.origin.y > currPos.y )
box.origin.y = currPos.y;
- box.size.width = abs(currPos.x -prevPos.x) +1;
- box.size.height = abs(currPos.y -prevPos.y) +1;
+ box.size.width = fabs(currPos.x -prevPos.x) +1;
+ box.size.height = fabs(currPos.y -prevPos.y) +1;
return box;
}

0 comments on commit 038eb23

Please sign in to comment.
Something went wrong with that request. Please try again.