Merge pull request from ipochto/fix/case_unsigned_narrowing

Fix compiling for gcc > 9.3.0
This commit is contained in:
Tim Felgentreff 2022-03-08 20:59:21 +01:00 committed by GitHub
commit 6067ae2d79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -493,7 +493,7 @@ static void DumpUnitInfo(CUnit &unit)
fprintf(logf, "%lu: ", GameCycle);
const char *currentAction;
switch (!unit.Orders.empty() ? unit.CurrentAction() : -1) {
switch (!unit.Orders.empty() ? int(unit.CurrentAction()) : -1) {
case -1: currentAction = "No Orders"; break;
case UnitActionNone: currentAction = "None"; break;
case UnitActionStill: currentAction = "Still"; break;