summaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/threading/local_executor/local_executor.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/threading/local_executor/local_executor.h b/library/cpp/threading/local_executor/local_executor.h
index df0b8333fcf..c1c824f67cb 100644
--- a/library/cpp/threading/local_executor/local_executor.h
+++ b/library/cpp/threading/local_executor/local_executor.h
@@ -75,9 +75,9 @@ namespace NPar {
//
template <typename TBlockCount>
TExecRangeParams& SetBlockCount(TBlockCount blockCount) {
- Y_ASSERT(SafeIntegerCast<int>(blockCount) > 0 || FirstId == LastId);
- BlockSize = FirstId == LastId ? 0 : CeilDiv(LastId - FirstId, SafeIntegerCast<int>(blockCount));
- BlockCount = BlockSize == 0 ? 0 : CeilDiv(LastId - FirstId, BlockSize);
+ Y_ASSERT(SafeIntegerCast<int>(blockCount) > 0 || FirstId == LastId);
+ BlockSize = FirstId == LastId ? 0 : CeilDiv(LastId - FirstId, SafeIntegerCast<int>(blockCount));
+ BlockCount = BlockSize == 0 ? 0 : CeilDiv(LastId - FirstId, BlockSize);
BlockEqualToThreads = false;
return *this;
}
@@ -86,9 +86,9 @@ namespace NPar {
//
template <typename TBlockSize>
TExecRangeParams& SetBlockSize(TBlockSize blockSize) {
- Y_ASSERT(SafeIntegerCast<int>(blockSize) > 0 || FirstId == LastId);
+ Y_ASSERT(SafeIntegerCast<int>(blockSize) > 0 || FirstId == LastId);
BlockSize = SafeIntegerCast<int>(blockSize);
- BlockCount = BlockSize == 0 ? 0 : CeilDiv(LastId - FirstId, BlockSize);
+ BlockCount = BlockSize == 0 ? 0 : CeilDiv(LastId - FirstId, BlockSize);
BlockEqualToThreads = false;
return *this;
}