ksys/evt: Add missing cast

Enum classes need to be casted before being passed to dumb C-style
variadic functions like format()
This commit is contained in:
Léo Lam 2021-02-07 11:41:13 +01:00
parent 6ef151ac1f
commit f41d668cff
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,8 @@ OrderParamEntry* OrderParam::getFreeEntry() {
OrderParamEntry* OrderParam::tryAlloc(OrderParamType type, u32 size, const sead::SafeString& name) {
sead::FixedSafeString<0x100> error_message;
error_message.format("[%s] tryAlloc_(%d, %d, %s) is failed.", "ksys::evt::OrderParam", type,
size, name.cstr());
error_message.format("[%s] tryAlloc_(%d, %d, %s) is failed.", "ksys::evt::OrderParam",
static_cast<u16>(type), size, name.cstr());
OrderParamEntry* entry = getFreeEntry(); // inlining here fixed the for loop