Skip to content

Commit

Permalink
[ASDimension] Remove warning about float precision using CGFloat and …
Browse files Browse the repository at this point in the history
…Double (#237)

[ASDimension] Remove warning about float precision using CGFloat and … #trivial
  • Loading branch information
amegias authored and Adlai-Holler committed May 8, 2017
1 parent 850aeb4 commit ad9924a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Layout/ASDimension.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ extern ASSizeRange const ASSizeRangeUnconstrained;
*/
ASDISPLAYNODE_INLINE AS_WARN_UNUSED_RESULT BOOL ASSizeRangeHasSignificantArea(ASSizeRange sizeRange)
{
static CGFloat const limit = 0.1;
static CGFloat const limit = 0.1f;
return (sizeRange.max.width > limit && sizeRange.max.height > limit);
}

Expand Down

0 comments on commit ad9924a

Please sign in to comment.