Skip to content

Commit ce4280d

Browse files
dmcgloinDaniel McGloin
andauthored
Fix new warning in Xcode 12.5 Beta 2 (12E5234g): "Cast to smaller integer type 'unsigned int' from 'SEGReachability *'". (#986)
Code copied for this specific function (currently unused) from https://github.com/tonymillion/Reachability/blob/ea5dd8d4646ecb2f0d07e6619827df1dfea809b8/Reachability.m#L501 Co-authored-by: Daniel McGloin <[email protected]>
1 parent da87008 commit ce4280d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Segment/Classes/SEGReachability.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,10 @@ - (void)reachabilityChanged:(SCNetworkReachabilityFlags)flags
489489

490490
#pragma mark - Debug Description
491491

492-
- (NSString *)description;
492+
- (NSString *) description
493493
{
494-
NSString *description = [NSString stringWithFormat:@"<%@: %#x>",
495-
NSStringFromClass([self class]), (unsigned int)self];
494+
NSString *description = [NSString stringWithFormat:@"<%@: %p (%@)>",
495+
NSStringFromClass([self class]), self, [self currentReachabilityFlags]];
496496
return description;
497497
}
498498

0 commit comments

Comments
 (0)