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?
This commit is contained in:
Frédéric Devernay 2013-07-26 21:32:35 +02:00
parent 4ad12a680c
commit 6be8757e8b

View File

@ -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;
}