Fix compiler warning in as_smallDescription on 32 bit (#1964)

This commit is contained in:
Michael Schneider
2016-07-21 14:52:21 -07:00
committed by Adlai Holler
parent 8cde594de3
commit 9b47a9114a

View File

@@ -68,9 +68,9 @@
NSMutableString *result = [NSMutableString stringWithString:@"{ "];
[self enumerateRangesUsingBlock:^(NSRange range, BOOL * _Nonnull stop) {
if (range.length == 1) {
[result appendFormat:@"%zu ", (unsigned long)range.location];
[result appendFormat:@"%tu ", range.location];
} else {
[result appendFormat:@"%zu-%lu ", (unsigned long)range.location, NSMaxRange(range) - 1];
[result appendFormat:@"%tu-%tu ", range.location, NSMaxRange(range) - 1];
}
}];
[result appendString:@"}"];