Skip to content

Commit 8b377fa

Browse files
authored
Fix iOS11 error about comparison between pointer and zero
Full error was: Ordered comparison between pointer and zero ('NSNumber *' and 'int')
1 parent 9baf655 commit 8b377fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ios/ImageDetectionPlugin.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ - (void)setDetectionTimeout:(CDVInvokedUrlCommand*)command;
126126
NSNumber* argVal = [command.arguments objectAtIndex:0];
127127
NSString* msg;
128128

129-
if (argVal != nil && argVal > 0) {
129+
if (argVal != nil && argVal > (void *) 0) {
130130
timeout = [argVal floatValue];
131131
ease_time = 0.5;
132132
timeout_started = [NSDate date];

0 commit comments

Comments
 (0)