Ninja: fix GCC 4.7 warning -Wconversion

This commit is contained in:
Peter Kümmel 2012-07-13 08:58:37 +02:00
parent 4bb94c9fbd
commit 3799848836
1 changed files with 1 additions and 1 deletions

View File

@ -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