From ff260f58e18040af2fb997ef225ff901e1fa9eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Jercin=CC=81ski?= Date: Wed, 14 Jan 2015 22:15:41 +0100 Subject: [PATCH] Removed unintentional conversion. --- AsyncDisplayKit/ASTextNode.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AsyncDisplayKit/ASTextNode.mm b/AsyncDisplayKit/ASTextNode.mm index 2fc5d619f9..e845db3c59 100644 --- a/AsyncDisplayKit/ASTextNode.mm +++ b/AsyncDisplayKit/ASTextNode.mm @@ -196,8 +196,8 @@ - (CGSize)calculateSizeThatFits:(CGSize)constrainedSize ASDisplayNodeAssert(renderSizePlusShadowPadding.width >= 0, @"Calculated width for text with shadow padding (%f) is too narrow", constrainedSizeForText.width); ASDisplayNodeAssert(renderSizePlusShadowPadding.height >= 0, @"Calculated height for text with shadow padding (%f) is too short", constrainedSizeForText.height); - return CGSizeMake(fminf(ceilPixelValue(renderSizePlusShadowPadding.width), constrainedSize.width), - fminf(ceilPixelValue(renderSizePlusShadowPadding.height), constrainedSize.height)); + return CGSizeMake(MIN(ceilPixelValue(renderSizePlusShadowPadding.width), constrainedSize.width), + MIN(ceilPixelValue(renderSizePlusShadowPadding.height), constrainedSize.height)); } - (void)displayDidFinish