Fix warning.

This commit is contained in:
levlam 2022-10-08 21:56:51 +03:00
parent 829201278f
commit 7e1555531c

View File

@ -1704,7 +1704,7 @@ Result<FileId> FileManager::merge(FileId x_file_id, FileId y_file_id, bool no_sy
node->on_info_changed();
}
if (node->file_ids_.size() > (1u << file_node_size_warning_exp_)) {
if (node->file_ids_.size() > (static_cast<size_t>(1) << file_node_size_warning_exp_)) {
LOG(WARNING) << "File of type " << file_view.get_type() << " has " << node->file_ids_.size() << " file identifiers";
file_node_size_warning_exp_++;
}