1
0
Fork 0

Codefix: return right type to prevent casting

pull/13938/head
Rubidium 2025-03-31 20:34:57 +02:00
parent dc956a758d
commit 2d90601488
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;
}