From 6be8757e8b93ca7593de76f66d2479737eb69c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Devernay?= Date: Fri, 26 Jul 2013 21:32:35 +0200 Subject: [PATCH] fix signedness error OpenCV's automatic builds don't care if you store an unsigned int into an int, but they don't want you to compare signed with unsigned. Does that make sense? --- modules/highgui/src/cap_qtkit.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/src/cap_qtkit.mm b/modules/highgui/src/cap_qtkit.mm index 2335e5c21..bde200e41 100644 --- a/modules/highgui/src/cap_qtkit.mm +++ b/modules/highgui/src/cap_qtkit.mm @@ -333,7 +333,7 @@ int CvCaptureCAM::startCaptureDevice(int cameraNum) { if (cameraNum >= 0) { NSUInteger nCameras = [devices count]; - if( cameraNum < 0 || cameraNum >= nCameras ) { + if( (NSUInteger)cameraNum >= nCameras ) { [localpool drain]; return 0; }