COMP: remove warnings

This commit is contained in:
Bill Hoffman
2007-09-27 14:44:11 -04:00
parent ef3c6f31fd
commit 887699184a
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ int cmGeneratedFileStreamBase::CompressFile(const char* oldname,
char buffer[BUFFER_SIZE];
while ( (res = fread(buffer, 1, BUFFER_SIZE, ifs)) > 0 )
{
if ( !gzwrite(gf, buffer, res) )
if ( !gzwrite(gf, buffer, static_cast<int>(res)) )
{
fclose(ifs);
gzclose(gf);