summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratedFileStream.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-09-27 18:44:11 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-09-27 18:44:11 (GMT)
commit887699184a3cdbaa1b38f2c5a38e43de3e11b063 (patch)
tree6f95b6fa4a0a70ce2704d100aaab0cc48594673b /Source/cmGeneratedFileStream.cxx
parentef3c6f31fde39f7a68c4eab68e57815b2190b6da (diff)
downloadCMake-887699184a3cdbaa1b38f2c5a38e43de3e11b063.zip
CMake-887699184a3cdbaa1b38f2c5a38e43de3e11b063.tar.gz
CMake-887699184a3cdbaa1b38f2c5a38e43de3e11b063.tar.bz2
COMP: remove warnings
Diffstat (limited to 'Source/cmGeneratedFileStream.cxx')
-rw-r--r--Source/cmGeneratedFileStream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGeneratedFileStream.cxx b/Source/cmGeneratedFileStream.cxx
index 82ac2b7..660d9d5 100644
--- a/Source/cmGeneratedFileStream.cxx
+++ b/Source/cmGeneratedFileStream.cxx
@@ -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);