forked from qt-creator/qt-creator
CMake: Fix warning
Change-Id: Ibfa8e5a9df03c9249f0feb6a8133dc222d57743d Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -283,7 +283,7 @@ void CMakeBuildStep::stdOutput(const QString &line)
|
||||
if (ok) {
|
||||
int all = m_ninjaProgress.cap(2).toInt(&ok);
|
||||
if (ok && all != 0) {
|
||||
int percent = 100.0 * done/all;
|
||||
const int percent = static_cast<int>(100.0 * done/all);
|
||||
futureInterface()->setProgressValue(percent);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user