mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
bcat/module: Silence truncation warnings
We need to perform explicit casts here, otherwise we're implicitly truncating a 64-bit type to a 32-bit one.
This commit is contained in:
parent
7e77d1593f
commit
0705ce0ed1
1 changed files with 3 additions and 3 deletions
|
@ -451,7 +451,7 @@ private:
|
||||||
|
|
||||||
IPC::ResponseBuilder rb{ctx, 3};
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
rb.Push<u32>(write_size * sizeof(DeliveryCacheDirectoryEntry));
|
rb.Push(static_cast<u32>(write_size * sizeof(DeliveryCacheDirectoryEntry)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetCount(Kernel::HLERequestContext& ctx) {
|
void GetCount(Kernel::HLERequestContext& ctx) {
|
||||||
|
@ -468,7 +468,7 @@ private:
|
||||||
|
|
||||||
IPC::ResponseBuilder rb{ctx, 3};
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
rb.Push<u32>(files.size());
|
rb.Push(static_cast<u32>(files.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
FileSys::VirtualDir root;
|
FileSys::VirtualDir root;
|
||||||
|
@ -525,7 +525,7 @@ private:
|
||||||
|
|
||||||
IPC::ResponseBuilder rb{ctx, 3};
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
rb.Push<u32>(size);
|
rb.Push(static_cast<u32>(size));
|
||||||
}
|
}
|
||||||
|
|
||||||
FileSys::VirtualDir root;
|
FileSys::VirtualDir root;
|
||||||
|
|
Loading…
Reference in a new issue