Merge pull request #1011 from mattrubin/implicit-signedness-conversions
Explicit type casting to prevent warnings
This commit is contained in:
commit
65af19c524
1 changed files with 4 additions and 4 deletions
|
|
@ -617,7 +617,7 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {
|
||||||
originalCompletionBlock();
|
originalCompletionBlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
NSInteger numberOfFinishedOperations = [[operations indexesOfObjectsPassingTest:^BOOL(id op, NSUInteger __unused idx, BOOL __unused *stop) {
|
NSUInteger numberOfFinishedOperations = [[operations indexesOfObjectsPassingTest:^BOOL(id op, NSUInteger __unused idx, BOOL __unused *stop) {
|
||||||
return [op isFinished];
|
return [op isFinished];
|
||||||
}] count];
|
}] count];
|
||||||
|
|
||||||
|
|
@ -1041,7 +1041,7 @@ static const NSUInteger AFMultipartBodyStreamProviderDefaultBufferLength = 4096;
|
||||||
if (_inputStream == nil) {
|
if (_inputStream == nil) {
|
||||||
CFReadStreamRef readStream;
|
CFReadStreamRef readStream;
|
||||||
CFWriteStreamRef writeStream;
|
CFWriteStreamRef writeStream;
|
||||||
CFStreamCreateBoundPair(NULL, &readStream, &writeStream, self.bufferLength);
|
CFStreamCreateBoundPair(NULL, &readStream, &writeStream, (NSInteger)self.bufferLength);
|
||||||
_inputStream = CFBridgingRelease(readStream);
|
_inputStream = CFBridgingRelease(readStream);
|
||||||
_outputStream = CFBridgingRelease(writeStream);
|
_outputStream = CFBridgingRelease(writeStream);
|
||||||
|
|
||||||
|
|
@ -1084,7 +1084,7 @@ static const NSUInteger AFMultipartBodyStreamProviderDefaultBufferLength = 4096;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
[_buffer replaceBytesInRange:NSMakeRange(0, numberOfBytesWritten) withBytes:NULL length:0];
|
[_buffer replaceBytesInRange:NSMakeRange(0, (NSUInteger)numberOfBytesWritten) withBytes:NULL length:0];
|
||||||
} else {
|
} else {
|
||||||
if (!self.currentHTTPBodyPart) {
|
if (!self.currentHTTPBodyPart) {
|
||||||
if (!self.HTTPBodyPartEnumerator) {
|
if (!self.HTTPBodyPartEnumerator) {
|
||||||
|
|
@ -1106,7 +1106,7 @@ static const NSUInteger AFMultipartBodyStreamProviderDefaultBufferLength = 4096;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
[_buffer setLength:numberOfBytesRead];
|
[_buffer setLength:(NSUInteger)numberOfBytesRead];
|
||||||
|
|
||||||
if (numberOfBytesRead == 0) {
|
if (numberOfBytesRead == 0) {
|
||||||
self.currentHTTPBodyPart = nil;
|
self.currentHTTPBodyPart = nil;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue