1
0
Fork 0

Codefix: return right type to prevent casting

pull/13939/head
Rubidium 2025-03-31 20:34:57 +02:00 committed by rubidium42
parent 023bf38338
commit 3c15e0c889
1 changed files with 2 additions and 2 deletions

View File

@ -403,9 +403,9 @@ static const CmdStruct *FindCmd(std::string_view s)
return nullptr;
}
static uint ResolveCaseName(std::string_view str)
static uint8_t ResolveCaseName(std::string_view str)
{
uint case_idx = _lang.GetCaseIndex(str);
uint8_t case_idx = _lang.GetCaseIndex(str);
if (case_idx >= MAX_NUM_CASES) StrgenFatal("Invalid case-name '{}'", str);
return case_idx + 1;
}