Fixed unsigned to signed int comparisons

This commit is contained in:
Richel Bilderbeek 2013-07-10 18:05:44 +02:00
parent 78893bc975
commit 93b00b0fed

View File

@ -93,7 +93,7 @@ cvaPoint matchSubImage_X11( Display *displayLocation, IplImage *subImage, int se
X_IPL = cvCreateImage( imageSize, IPL_DEPTH_8U, 3 ); /* 3 channels - RGB */
/* This if block converts the X root window to an IPL image. See you on the other side! */
unsigned int x, y; /* To be used later */
int x, y; /* To be used later */
if ( screen->depths->depth == 24 )
{
@ -284,7 +284,7 @@ cvaPoint matchSubImage_X11_center( Display *displayLocation, IplImage *subImage,
X_IPL = cvCreateImage( imageSize, IPL_DEPTH_8U, 3 ); /* 3 channels - RGB */
/* This if block converts the X root window to an IPL image. See you on the other side! */
unsigned int x, y; /* To be used later */
int x, y; /* To be used later */
if ( screen->depths->depth == 24 )
{