mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Address warnings in Xcode >= 9.3 about using %zd for NSInteger (#1026)
This commit is contained in:
@@ -2225,7 +2225,7 @@ ASDISPLAYNODE_INLINE BOOL subtreeIsRasterized(ASDisplayNode *node) {
|
||||
NSUInteger subnodesCount = _subnodes.count;
|
||||
__instanceLock__.unlock();
|
||||
if (subnodeIndex > subnodesCount || subnodeIndex < 0) {
|
||||
ASDisplayNodeFailAssert(@"Cannot insert a subnode at index %zd. Count is %zd", subnodeIndex, subnodesCount);
|
||||
ASDisplayNodeFailAssert(@"Cannot insert a subnode at index %ld. Count is %ld", (long)subnodeIndex, (long)subnodesCount);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2540,7 +2540,7 @@ ASDISPLAYNODE_INLINE BOOL subtreeIsRasterized(ASDisplayNode *node) {
|
||||
ASDN::MutexLocker l(__instanceLock__);
|
||||
|
||||
if (idx > _subnodes.count || idx < 0) {
|
||||
ASDisplayNodeFailAssert(@"Cannot insert a subnode at index %zd. Count is %zd", idx, _subnodes.count);
|
||||
ASDisplayNodeFailAssert(@"Cannot insert a subnode at index %ld. Count is %ld", (long)idx, (long)_subnodes.count);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user