chore: 修复Clang/GCC编译警告

This commit is contained in:
Hao Guan
2023-03-20 19:35:40 +10:00
parent 74978fbaf5
commit f2f26b5d2d
15 changed files with 35 additions and 23 deletions

View File

@@ -311,7 +311,7 @@ bool asst::BattleProcessTask::wait_condition(const Action& action)
}
size_t cooling_count = ranges::count_if(m_cur_deployment_opers | views::values,
[](const auto& oper) -> bool { return oper.cooling; });
if (cooling_count == action.cooling) {
if (cooling_count == static_cast<size_t>(action.cooling)) {
break;
}
do_strategy_and_update_image();