chore: 修复Clang/GCC编译警告

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

View File

@@ -176,7 +176,7 @@ bool asst::SSSBattleProcessTask::check_if_start_over(const battle::copilot::Acti
cur_counts[oper.role] += 1;
}
for (const auto& [role, number] : action.role_counts) {
if (cur_counts[role] < number) {
if (cur_counts[role] < static_cast<size_t>(number)) {
to_abandon = true;
break;
}