summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorChristoph GrĂ¼ninger <gruenich@dune-project.org>2014-12-23 12:33:35 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-23 14:05:25 (GMT)
commit098fc4a862d51ad7cca154cdd5f0a2a8ff0763c7 (patch)
tree51cb3f17eefbd3b7a2035ecd381025dd5eceef29 /Source
parent1a9ba38174578e56a277cc0d0dfa2b3f8340ea74 (diff)
downloadCMake-098fc4a862d51ad7cca154cdd5f0a2a8ff0763c7.zip
CMake-098fc4a862d51ad7cca154cdd5f0a2a8ff0763c7.tar.gz
CMake-098fc4a862d51ad7cca154cdd5f0a2a8ff0763c7.tar.bz2
cmCMakeMinimumRequired: Use unsigned int for version numbers
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCMakeMinimumRequired.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/cmCMakeMinimumRequired.cxx b/Source/cmCMakeMinimumRequired.cxx
index 58b61de..384e0a7 100644
--- a/Source/cmCMakeMinimumRequired.cxx
+++ b/Source/cmCMakeMinimumRequired.cxx
@@ -63,17 +63,17 @@ bool cmCMakeMinimumRequired
// Get the current version number.
- int current_major = cmVersion::GetMajorVersion();
- int current_minor = cmVersion::GetMinorVersion();
- int current_patch = cmVersion::GetPatchVersion();
- int current_tweak = cmVersion::GetTweakVersion();
+ unsigned int current_major = cmVersion::GetMajorVersion();
+ unsigned int current_minor = cmVersion::GetMinorVersion();
+ unsigned int current_patch = cmVersion::GetPatchVersion();
+ unsigned int current_tweak = cmVersion::GetTweakVersion();
// Parse at least two components of the version number.
// Use zero for those not specified.
- int required_major = 0;
- int required_minor = 0;
- int required_patch = 0;
- int required_tweak = 0;
+ unsigned int required_major = 0;
+ unsigned int required_minor = 0;
+ unsigned int required_patch = 0;
+ unsigned int required_tweak = 0;
if(sscanf(version_string.c_str(), "%u.%u.%u.%u",
&required_major, &required_minor,
&required_patch, &required_tweak) < 2)