Fixed cross-compiling with theos
This commit is contained in:
@@ -573,7 +573,7 @@ static NSOperationQueue *sharedQueue = nil;
|
||||
return;
|
||||
}
|
||||
if ([self shouldStreamPostDataFromDisk]) {
|
||||
[[self postBodyWriteStream] write:[data bytes] maxLength:[data length]];
|
||||
[[self postBodyWriteStream] write:(const uint8_t *)[data bytes] maxLength:[data length]];
|
||||
} else {
|
||||
[[self postBody] appendData:data];
|
||||
}
|
||||
@@ -3367,7 +3367,7 @@ static NSOperationQueue *sharedQueue = nil;
|
||||
[[self inflatedFileDownloadOutputStream] open];
|
||||
}
|
||||
|
||||
[[self inflatedFileDownloadOutputStream] write:[inflatedData bytes] maxLength:[inflatedData length]];
|
||||
[[self inflatedFileDownloadOutputStream] write:(const uint8_t *)[inflatedData bytes] maxLength:[inflatedData length]];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user