mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-18 19:22:51 +08:00
CB-6212 iOS: fix warnings compiled under arm64 64-bit
-one update to CDVCamera.m
This commit is contained in:
parent
6fb63fede5
commit
91d6e10b29
@ -84,7 +84,7 @@ static NSSet* org_apache_cordova_validArrowDirections;
|
||||
|
||||
bool hasCamera = [UIImagePickerController isSourceTypeAvailable:sourceType];
|
||||
if (!hasCamera) {
|
||||
NSLog(@"Camera.getPicture: source type %ld not available.", sourceType);
|
||||
NSLog(@"Camera.getPicture: source type %lu not available.", (unsigned long)sourceType);
|
||||
CDVPluginResult* result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"no camera available"];
|
||||
[self.commandDelegate sendPluginResult:result callbackId:callbackId];
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user