aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-11-21 12:18:10 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-11-21 13:46:10 +0300
commit9494618fb3f069d59f1cd5d8cba61327043193c3 (patch)
tree90127b3c47cca6552c25824aee6ec54da9f3d47a
parent1b10ae05649cf79a4ea16d529edbaa395ccbc619 (diff)
downloadydb-9494618fb3f069d59f1cd5d8cba61327043193c3.tar.gz
Intermediate changes
-rw-r--r--yt/yt/core/concurrency/unittests/scheduler_ut.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/yt/yt/core/concurrency/unittests/scheduler_ut.cpp b/yt/yt/core/concurrency/unittests/scheduler_ut.cpp
index cc36a2d99e..a7e7da4401 100644
--- a/yt/yt/core/concurrency/unittests/scheduler_ut.cpp
+++ b/yt/yt/core/concurrency/unittests/scheduler_ut.cpp
@@ -103,8 +103,9 @@ int RecursiveFunction(size_t maxDepth, size_t currentDepth)
array[i] = rand();
}
- return std::accumulate(array.begin(), array.end(), 0)
- + RecursiveFunction(maxDepth, currentDepth + 1);
+ int result = RecursiveFunction(maxDepth, currentDepth + 1);
+
+ return std::accumulate(array.begin(), array.end(), 0) + result;
}
// Fiber stack base address is unavailable on Windows (and always returns nullptr).