summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-07-13 06:58:37 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-07-13 06:58:37 (GMT)
commit379984883665d86a9c593acda8b24713e200f9ba (patch)
tree29fae8c1c01be1af70c1702f808057ec047ecb8b /Source/cmNinjaNormalTargetGenerator.cxx
parent4bb94c9fbd948ec18a3b40fef8378dda76cec0f0 (diff)
downloadCMake-379984883665d86a9c593acda8b24713e200f9ba.zip
CMake-379984883665d86a9c593acda8b24713e200f9ba.tar.gz
CMake-379984883665d86a9c593acda8b24713e200f9ba.tar.bz2
Ninja: fix GCC 4.7 warning -Wconversion
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index be7739e..cc49e39 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -495,7 +495,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
int commandLineLengthLimit = 8000 - linkRuleLength;
#elif defined(__linux) || defined(__APPLE__)
// for instance ARG_MAX is 2096152 on Ubuntu or 262144 on Mac
- int commandLineLengthLimit = sysconf(_SC_ARG_MAX) - linkRuleLength - 1000;
+ int commandLineLengthLimit = ((int)sysconf(_SC_ARG_MAX)) - linkRuleLength - 1000;
#else
int commandLineLengthLimit = -1;
#endif