CMake: Fix warning

Change-Id: Ibfa8e5a9df03c9249f0feb6a8133dc222d57743d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tobias Hunger
2016-10-07 09:26:41 +02:00
parent ce308c1091
commit 4d7420fe49

View File

@@ -283,7 +283,7 @@ void CMakeBuildStep::stdOutput(const QString &line)
if (ok) { if (ok) {
int all = m_ninjaProgress.cap(2).toInt(&ok); int all = m_ninjaProgress.cap(2).toInt(&ok);
if (ok && all != 0) { if (ok && all != 0) {
int percent = 100.0 * done/all; const int percent = static_cast<int>(100.0 * done/all);
futureInterface()->setProgressValue(percent); futureInterface()->setProgressValue(percent);
} }
} }