Address warnings in Xcode >= 9.3 about using %zd for NSInteger (#1026)

This commit is contained in:
Adlai Holler
2018-07-13 11:56:54 -07:00
committed by GitHub
parent 8986838b48
commit af7f71f92d
8 changed files with 20 additions and 23 deletions

View File

@@ -153,7 +153,7 @@
- (NSString *)description {
NSMutableString *desc = @"".mutableCopy;
NSRange range = self.range;
[desc appendFormat:@"<ASTextLine: %p> row:%zd range:%tu,%tu",self, self.row, range.location, range.length];
[desc appendFormat:@"<ASTextLine: %p> row:%ld range:%tu,%tu", self, (long)self.row, range.location, range.length];
[desc appendFormat:@" position:%@",NSStringFromCGPoint(self.position)];
[desc appendFormat:@" bounds:%@",NSStringFromCGRect(self.bounds)];
return desc;