Commit 6be8757e authored by Frédéric Devernay's avatar Frédéric Devernay

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?
parent 4ad12a68
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment