aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/executor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/buildgraph/executor.cpp')
-rw-r--r--src/lib/corelib/buildgraph/executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/buildgraph/executor.cpp b/src/lib/corelib/buildgraph/executor.cpp
index 8713b9b41..f82833e7e 100644
--- a/src/lib/corelib/buildgraph/executor.cpp
+++ b/src/lib/corelib/buildgraph/executor.cpp
@@ -828,7 +828,7 @@ void Executor::rescueOldBuildData(Artifact *artifact, bool *childrenAdded = 0)
if (canRescue) {
const TypeFilter<Artifact> childArtifacts(artifact->children);
- const int newChildCount = childrenToConnect.size()
+ const size_t newChildCount = childrenToConnect.size()
+ std::distance(childArtifacts.begin(), childArtifacts.end());
QBS_CHECK(newChildCount >= rad.children.size());
if (newChildCount > rad.children.size()) {