mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 22:57:22 +00:00
Cast size_t to u32 for PushStaticBuffer usages
This commit is contained in:
parent
12ed746477
commit
979d2000d2
1 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ void ReceiveParameter(Service::Interface* self) {
|
||||||
rb.PushMoveHandles((next_parameter.object != nullptr)
|
rb.PushMoveHandles((next_parameter.object != nullptr)
|
||||||
? Kernel::g_handle_table.Create(next_parameter.object).MoveFrom()
|
? Kernel::g_handle_table.Create(next_parameter.object).MoveFrom()
|
||||||
: 0);
|
: 0);
|
||||||
rb.PushStaticBuffer(buffer, next_parameter.buffer.size(), 0);
|
rb.PushStaticBuffer(buffer, static_cast<u32>(next_parameter.buffer.size()), 0);
|
||||||
|
|
||||||
Memory::WriteBlock(buffer, next_parameter.buffer.data(), next_parameter.buffer.size());
|
Memory::WriteBlock(buffer, next_parameter.buffer.data(), next_parameter.buffer.size());
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ void GlanceParameter(Service::Interface* self) {
|
||||||
rb.PushCopyHandles((next_parameter.object != nullptr)
|
rb.PushCopyHandles((next_parameter.object != nullptr)
|
||||||
? Kernel::g_handle_table.Create(next_parameter.object).MoveFrom()
|
? Kernel::g_handle_table.Create(next_parameter.object).MoveFrom()
|
||||||
: 0);
|
: 0);
|
||||||
rb.PushStaticBuffer(buffer, next_parameter.buffer.size(), 0);
|
rb.PushStaticBuffer(buffer, static_cast<u32>(next_parameter.buffer.size()), 0);
|
||||||
|
|
||||||
Memory::WriteBlock(buffer, next_parameter.buffer.data(), next_parameter.buffer.size());
|
Memory::WriteBlock(buffer, next_parameter.buffer.data(), next_parameter.buffer.size());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue