mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
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:
parent
4ad12a680c
commit
6be8757e8b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user