[Chore](build) add -Wconversion and remove some unused code (#33127)

add -Wconversion and remove some unused code
This commit is contained in:
Pxl
2024-04-03 11:57:41 +08:00
committed by yiguolei
parent 6798a24a27
commit 8fd6d4c41b
68 changed files with 115 additions and 240 deletions

View File

@ -521,8 +521,8 @@ void VSetOperationNode<is_intersect>::refresh_hash_table() {
bool is_need_shrink =
arg.hash_table->should_be_shrink(_valid_element_in_hash_tbl);
if (is_intersect || is_need_shrink) {
tmp_hash_table->init_buf_size(
_valid_element_in_hash_tbl / arg.hash_table->get_factor() + 1);
tmp_hash_table->init_buf_size(size_t(
_valid_element_in_hash_tbl / arg.hash_table->get_factor() + 1));
}
arg.init_iterator();