Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 7426c1d

Browse files
Yue-Wang-GoogleAdlai Holler
authored andcommitted
Fixed implicit cast for 64-bit devices in ASTextKitComponents.h (#1994)
1 parent 79e4420 commit 7426c1d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

AsyncDisplayKit/TextKit/ASTextKitComponents.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010

1111
#import <UIKit/UIKit.h>
1212
#import <AsyncDisplayKit/ASBaseDefines.h>
13+
#import <tgmath.h>
1314

1415
NS_ASSUME_NONNULL_BEGIN
1516

1617
ASDISPLAYNODE_INLINE CGFloat ceilPixelValueForScale(CGFloat f, CGFloat scale)
1718
{
1819
// Round up to device pixel (.5 on retina)
19-
return ceilf(f * scale) / scale;
20+
return ceil(f * scale) / scale;
2021
}
2122

2223
ASDISPLAYNODE_INLINE CGSize ceilSizeValue(CGSize s)

0 commit comments

Comments
 (0)