Commit e76b7ba0 by Alan Mishchenko

Compiler warnings.

parent 674bcbee
...@@ -2267,18 +2267,18 @@ static inline Vec_Int_t * Vec_IntReadBin( char * pFileName, int fVerbose ) ...@@ -2267,18 +2267,18 @@ static inline Vec_Int_t * Vec_IntReadBin( char * pFileName, int fVerbose )
} }
if ( nSize % sizeof(int) > 0 ) if ( nSize % sizeof(int) > 0 )
{ {
printf( "Cannot read file with integers because it is not aligned at 4 bytes (remainder = %d).\n", nSize % sizeof(int) ); printf( "Cannot read file with integers because it is not aligned at 4 bytes (remainder = %d).\n", (int)(nSize % sizeof(int)) );
fclose( pFile ); fclose( pFile );
return NULL; return NULL;
} }
rewind( pFile ); rewind( pFile );
p = Vec_IntStart( nSize/sizeof(int) ); p = Vec_IntStart( (int)(nSize/sizeof(int)) );
RetValue = fread( Vec_IntArray(p), 1, nSize, pFile ); RetValue = fread( Vec_IntArray(p), 1, nSize, pFile );
fclose( pFile ); fclose( pFile );
if ( RetValue != nSize ) if ( RetValue != nSize )
printf( "Error reading data from file.\n" ); printf( "Error reading data from file.\n" );
if ( fVerbose ) if ( fVerbose )
printf( "Read %d integers from file \"%s\".\n", nSize/sizeof(int), pFileName ); printf( "Read %d integers from file \"%s\".\n", (int)(nSize/sizeof(int)), pFileName );
return p; return p;
} }
......
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