summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackNSISGenerator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2010-06-27 15:22:05 (GMT)
committerDavid Cole <david.cole@kitware.com>2010-06-27 15:22:05 (GMT)
commit415900ba77648c2472bb2022c46136830a627562 (patch)
treeae6ad0c55510934ca89bc88aa2a8f759b14de89a /Source/CPack/cmCPackNSISGenerator.cxx
parent4745f4996b73a778f6bdd25669c59b6a6c115fe4 (diff)
downloadCMake-415900ba77648c2472bb2022c46136830a627562.zip
CMake-415900ba77648c2472bb2022c46136830a627562.tar.gz
CMake-415900ba77648c2472bb2022c46136830a627562.tar.bz2
Eliminate -Wconversion warnings.
Change types of local variables, or casting, or re-arrange expressions to get rid of "conversion may alter value" warnings as seen on recent dashboard submissions from londinium.kitware.
Diffstat (limited to 'Source/CPack/cmCPackNSISGenerator.cxx')
-rw-r--r--Source/CPack/cmCPackNSISGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackNSISGenerator.cxx b/Source/CPack/cmCPackNSISGenerator.cxx
index ad77386..8329546 100644
--- a/Source/CPack/cmCPackNSISGenerator.cxx
+++ b/Source/CPack/cmCPackNSISGenerator.cxx
@@ -758,7 +758,7 @@ CreateComponentDescription(cmCPackComponent *component,
}
// Create the NSIS code to download this file on-the-fly.
- unsigned totalSizeInKbytes = (totalSize + 512) / 1024;
+ unsigned long totalSizeInKbytes = (totalSize + 512) / 1024;
if (totalSizeInKbytes == 0)
{
totalSizeInKbytes = 1;