diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-27 18:44:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-09-27 18:44:11 (GMT) |
commit | 887699184a3cdbaa1b38f2c5a38e43de3e11b063 (patch) | |
tree | 6f95b6fa4a0a70ce2704d100aaab0cc48594673b /Source/CPack/cmCPackTGZGenerator.cxx | |
parent | ef3c6f31fde39f7a68c4eab68e57815b2190b6da (diff) | |
download | CMake-887699184a3cdbaa1b38f2c5a38e43de3e11b063.zip CMake-887699184a3cdbaa1b38f2c5a38e43de3e11b063.tar.gz CMake-887699184a3cdbaa1b38f2c5a38e43de3e11b063.tar.bz2 |
COMP: remove warnings
Diffstat (limited to 'Source/CPack/cmCPackTGZGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackTGZGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackTGZGenerator.cxx b/Source/CPack/cmCPackTGZGenerator.cxx index 4d5c470..22d6de3 100644 --- a/Source/CPack/cmCPackTGZGenerator.cxx +++ b/Source/CPack/cmCPackTGZGenerator.cxx @@ -129,7 +129,7 @@ ssize_t cmCPackTGZ_Data_Write(void *client_data, void *buff, size_t n) if ( mydata->Compress ) { - mydata->ZLibStream.avail_in = n; + mydata->ZLibStream.avail_in = static_cast<uInt>(n); mydata->ZLibStream.next_in = reinterpret_cast<Bytef*>(buff); do { @@ -157,7 +157,8 @@ ssize_t cmCPackTGZ_Data_Write(void *client_data, void *buff, size_t n) } if ( n ) { - mydata->CRC = crc32(mydata->CRC, reinterpret_cast<Bytef *>(buff), n); + mydata->CRC = crc32(mydata->CRC, reinterpret_cast<Bytef *>(buff), + static_cast<uInt>(n)); } } else |