Changing string format replacement tokens to suppress compiler warnings
This commit is contained in:
parent
4809c77427
commit
d02d9612dd
2 changed files with 3 additions and 3 deletions
|
|
@ -703,7 +703,7 @@ static inline NSString * AFMultipartFormFinalBoundary() {
|
||||||
self.request = request;
|
self.request = request;
|
||||||
self.stringEncoding = encoding;
|
self.stringEncoding = encoding;
|
||||||
|
|
||||||
self.temporaryFilePath = [AFMultipartTemporaryFileDirectoryPath() stringByAppendingPathComponent:[NSString stringWithFormat:@"%lu", [[self.request URL] hash]]];
|
self.temporaryFilePath = [AFMultipartTemporaryFileDirectoryPath() stringByAppendingPathComponent:[NSString stringWithFormat:@"%u", [[self.request URL] hash]]];
|
||||||
self.outputStream = [NSOutputStream outputStreamToFileAtPath:self.temporaryFilePath append:NO];
|
self.outputStream = [NSOutputStream outputStreamToFileAtPath:self.temporaryFilePath append:NO];
|
||||||
|
|
||||||
NSRunLoop *runLoop = [NSRunLoop currentRunLoop];
|
NSRunLoop *runLoop = [NSRunLoop currentRunLoop];
|
||||||
|
|
|
||||||
|
|
@ -76,11 +76,11 @@ static NSString * AFStringFromIndexSet(NSIndexSet *indexSet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (range.length == 1) {
|
if (range.length == 1) {
|
||||||
[string appendFormat:@"%lu", range.location];
|
[string appendFormat:@"%u", range.location];
|
||||||
} else {
|
} else {
|
||||||
NSUInteger firstIndex = range.location;
|
NSUInteger firstIndex = range.location;
|
||||||
NSUInteger lastIndex = firstIndex + range.length - 1;
|
NSUInteger lastIndex = firstIndex + range.length - 1;
|
||||||
[string appendFormat:@"%lu-%lu", firstIndex, lastIndex];
|
[string appendFormat:@"%u-%u", firstIndex, lastIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
range.location = nextIndex;
|
range.location = nextIndex;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue