diff options
author | Lioncash <mathew1800@gmail.com> | 2019-10-06 14:11:28 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-10-06 15:38:12 -0400 |
commit | 0705ce0ed16da57b9ab282980b23c18e815e1f85 (patch) | |
tree | 127dc57bafe2723948ab1d698cbb71ee11ec24fe /src | |
parent | 7e77d1593fb7c66f23a3f805d728d7c19d50b753 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/bcat/module.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/bcat/module.cpp b/src/core/hle/service/bcat/module.cpp index 4c01bcd99..1f21b0434 100644 --- a/src/core/hle/service/bcat/module.cpp +++ b/src/core/hle/service/bcat/module.cpp @@ -451,7 +451,7 @@ private: IPC::ResponseBuilder rb{ctx, 3}; 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) { @@ -468,7 +468,7 @@ private: IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.Push<u32>(files.size()); + rb.Push(static_cast<u32>(files.size())); } FileSys::VirtualDir root; @@ -525,7 +525,7 @@ private: IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.Push<u32>(size); + rb.Push(static_cast<u32>(size)); } FileSys::VirtualDir root; |