Commit 03aa0c9f authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed 2 warnings from VS2010 64-bit

parent fa5422a2
...@@ -1227,7 +1227,7 @@ CvBackgroundData* icvCreateBackgroundData( const char* filename, CvSize winsize ...@@ -1227,7 +1227,7 @@ CvBackgroundData* icvCreateBackgroundData( const char* filename, CvSize winsize
while( !feof( input ) ) while( !feof( input ) )
{ {
*imgfilename = '\0'; *imgfilename = '\0';
if( !fgets( imgfilename, PATH_MAX - (imgfilename - full) - 1, input )) if( !fgets( imgfilename, PATH_MAX - (int)(imgfilename - full) - 1, input ))
break; break;
len = (int)strlen( imgfilename ); len = (int)strlen( imgfilename );
if( len > 0 && imgfilename[len-1] == '\n' ) if( len > 0 && imgfilename[len-1] == '\n' )
...@@ -1256,7 +1256,7 @@ CvBackgroundData* icvCreateBackgroundData( const char* filename, CvSize winsize ...@@ -1256,7 +1256,7 @@ CvBackgroundData* icvCreateBackgroundData( const char* filename, CvSize winsize
while( !feof( input ) ) while( !feof( input ) )
{ {
*imgfilename = '\0'; *imgfilename = '\0';
if( !fgets( imgfilename, PATH_MAX - (imgfilename - full) - 1, input )) if( !fgets( imgfilename, PATH_MAX - (int)(imgfilename - full) - 1, input ))
break; break;
len = (int)strlen( imgfilename ); len = (int)strlen( imgfilename );
if( len > 0 && imgfilename[len-1] == '\n' ) if( len > 0 && imgfilename[len-1] == '\n' )
......
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