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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user