Skip to content

Commit ffff164

Browse files
obdevfootkaLINxiansheng
authored andcommitted
fix: resolve ambiguous max() call in ob_partition_range_spliter.cpp
Co-authored-by: footka <672528926@qq.com> Co-authored-by: LINxiansheng <wangzelin19961202@gmail.com>
1 parent 169c6c8 commit ffff164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/storage/ob_partition_range_spliter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ int ObMultiRangeInfoEstimateContext::on_node_estimate(const ObMicroIndexInfo &in
687687
total_row_count_ += index_row.get_row_count() >> estimate_factor;
688688
total_macro_block_count_ += (index_row.get_macro_id() != last_macro_block_id_
689689
|| index_row.get_block_offset() != last_index_row_in_block_offset_)
690-
? max(1ll, index_row.get_macro_block_count() >> estimate_factor)
690+
? max(static_cast<int64_t>(1), static_cast<int64_t>(index_row.get_macro_block_count() >> estimate_factor))
691691
: 0;
692692
last_macro_block_id_ = index_row.get_macro_id();
693693
last_index_row_in_block_offset_ = index_row.get_block_offset();

0 commit comments

Comments
 (0)