fix: resolve narrowing conversion issue in mm_u.cpp

- Added explicit cast to address narrowing conversion warning in the initializer list for `IPC::ResponseBuilder`.
- Ensured compatibility with strict type conversion requirements.
This commit is contained in:
Phoenix 2024-09-11 18:01:47 +10:00
parent e478b4b441
commit 651e8960f7

View File

@ -78,7 +78,7 @@ private:
request_id = rp.Pop<u32>();
}
IPC::ResponseBuilder rb{ctx, extra_data ? 3 : 2};
IPC::ResponseBuilder rb{ctx, static_cast<u32>(extra_data ? 3 : 2)};
rb.Push(result);
if (extra_data != 0) {
rb.Push(extra_data);