diff options
author | David Cole <david.cole@kitware.com> | 2009-10-01 16:47:08 -0400 |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-10-01 16:47:08 -0400 |
commit | 44bcba746156ad1d5fe7f784380c3fb4f4672f6b (patch) | |
tree | 34028a688c7649519a6a1086949f859d75a1a63f /Source/CPack/cmCPackTGZGenerator.cxx | |
parent | 86459a89a10733bad549c34a4c4c0ca962397bc6 (diff) | |
download | cmake-44bcba746156ad1d5fe7f784380c3fb4f4672f6b.tar.gz |
Fix warnings in CMake source code. Suppress rampant warnings emanating from Qt files.
Diffstat (limited to 'Source/CPack/cmCPackTGZGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackTGZGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackTGZGenerator.cxx b/Source/CPack/cmCPackTGZGenerator.cxx index 3ca0e53cec..1c56d81a9d 100644 --- a/Source/CPack/cmCPackTGZGenerator.cxx +++ b/Source/CPack/cmCPackTGZGenerator.cxx @@ -176,12 +176,12 @@ int cmCPackTGZ_Data_Close(void *client_data) int n; uLong x = mydata->CRC; for (n = 0; n < 4; n++) { - buffer[n] = (int)(x & 0xff); + buffer[n] = static_cast<char>(x & 0xff); x >>= 8; } x = mydata->ZLibStream.total_in; for (n = 0; n < 4; n++) { - buffer[n+4] = (int)(x & 0xff); + buffer[n+4] = static_cast<char>(x & 0xff); x >>= 8; } |