mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
ios: Fix compile warning about implicity int conversion
This commit is contained in:
@@ -651,7 +651,7 @@ static CFIndex WriteDataToStream(NSData* data, CFWriteStreamRef stream)
|
||||
if ([response isKindOfClass:[NSHTTPURLResponse class]]) {
|
||||
NSHTTPURLResponse* httpResponse = (NSHTTPURLResponse*)response;
|
||||
|
||||
self.responseCode = [httpResponse statusCode];
|
||||
self.responseCode = (int)[httpResponse statusCode];
|
||||
self.bytesExpected = [response expectedContentLength];
|
||||
self.responseHeaders = [httpResponse allHeaderFields];
|
||||
if ((self.direction == CDV_TRANSFER_DOWNLOAD) && (self.responseCode == 200) && (self.bytesExpected == NSURLResponseUnknownLength)) {
|
||||
|
||||
Reference in New Issue
Block a user