Skip to content

Commit d5c2c5c

Browse files
authored
fix std::min usage (#11133)
1 parent 4e69825 commit d5c2c5c

File tree

1 file changed

+2
-2
lines changed
  • ydb/library/yql/minikql/comp_nodes/packed_tuple

1 file changed

+2
-2
lines changed

ydb/library/yql/minikql/comp_nodes/packed_tuple/tuple.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ void TTupleLayoutFallback<TTraits>::Pack(
637637
}
638638

639639
for (size_t row_ind = 0; row_ind < count; row_ind += BlockRows_) {
640-
const size_t cur_block_size = std::min(count - row_ind, BlockRows_);
640+
const size_t cur_block_size = std::min<size_t>(count - row_ind, BlockRows_);
641641
size_t cols_past = 0;
642642

643643
for (const auto &simd_block : SIMDBlock_) {
@@ -816,7 +816,7 @@ void TTupleLayoutFallback<TTraits>::Unpack(
816816
}
817817

818818
for (size_t row_ind = 0; row_ind < count; row_ind += BlockRows_) {
819-
const size_t cur_block_size = std::min(count - row_ind, BlockRows_);
819+
const size_t cur_block_size = std::min<size_t>(count - row_ind, BlockRows_);
820820
size_t cols_past = 0;
821821

822822
for (const auto &simd_block : SIMDBlock_) {

0 commit comments

Comments
 (0)