mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fixed implicit cast for 64-bit devices in ASTextKitComponents.h (#1994)
This commit is contained in:
committed by
Adlai Holler
parent
79e44207e8
commit
7426c1dd66
@@ -10,13 +10,14 @@
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <AsyncDisplayKit/ASBaseDefines.h>
|
||||
#import <tgmath.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
ASDISPLAYNODE_INLINE CGFloat ceilPixelValueForScale(CGFloat f, CGFloat scale)
|
||||
{
|
||||
// Round up to device pixel (.5 on retina)
|
||||
return ceilf(f * scale) / scale;
|
||||
return ceil(f * scale) / scale;
|
||||
}
|
||||
|
||||
ASDISPLAYNODE_INLINE CGSize ceilSizeValue(CGSize s)
|
||||
|
||||
Reference in New Issue
Block a user