aboutsummaryrefslogtreecommitdiff
path: root/build2/operation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/operation.cxx')
-rw-r--r--build2/operation.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/operation.cxx b/build2/operation.cxx
index 62f82d3..82b546c 100644
--- a/build2/operation.cxx
+++ b/build2/operation.cxx
@@ -289,7 +289,7 @@ namespace build2
mg = sched.monitor (
target_count,
init - incr,
- [init, incr, what] (size_t c) -> size_t
+ [init, incr, &what] (size_t c) -> size_t
{
size_t p ((init - c) * 100 / init);
size_t s (skip_count.load (memory_order_relaxed));