diff options
| author | 2019-10-06 14:11:28 -0400 | |
|---|---|---|
| committer | 2019-10-06 15:38:12 -0400 | |
| commit | 0705ce0ed16da57b9ab282980b23c18e815e1f85 (patch) | |
| tree | 127dc57bafe2723948ab1d698cbb71ee11ec24fe /src | |
| parent | bcat: Take std::function instance by value in NullBackend's constructor (diff) | |
| download | yuzu-0705ce0ed16da57b9ab282980b23c18e815e1f85.tar.gz yuzu-0705ce0ed16da57b9ab282980b23c18e815e1f85.tar.xz yuzu-0705ce0ed16da57b9ab282980b23c18e815e1f85.zip | |
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 '')
| -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: | |||
| 451 | 451 | ||
| 452 | IPC::ResponseBuilder rb{ctx, 3}; | 452 | IPC::ResponseBuilder rb{ctx, 3}; |
| 453 | rb.Push(RESULT_SUCCESS); | 453 | rb.Push(RESULT_SUCCESS); |
| 454 | rb.Push<u32>(write_size * sizeof(DeliveryCacheDirectoryEntry)); | 454 | rb.Push(static_cast<u32>(write_size * sizeof(DeliveryCacheDirectoryEntry))); |
| 455 | } | 455 | } |
| 456 | 456 | ||
| 457 | void GetCount(Kernel::HLERequestContext& ctx) { | 457 | void GetCount(Kernel::HLERequestContext& ctx) { |
| @@ -468,7 +468,7 @@ private: | |||
| 468 | 468 | ||
| 469 | IPC::ResponseBuilder rb{ctx, 3}; | 469 | IPC::ResponseBuilder rb{ctx, 3}; |
| 470 | rb.Push(RESULT_SUCCESS); | 470 | rb.Push(RESULT_SUCCESS); |
| 471 | rb.Push<u32>(files.size()); | 471 | rb.Push(static_cast<u32>(files.size())); |
| 472 | } | 472 | } |
| 473 | 473 | ||
| 474 | FileSys::VirtualDir root; | 474 | FileSys::VirtualDir root; |
| @@ -525,7 +525,7 @@ private: | |||
| 525 | 525 | ||
| 526 | IPC::ResponseBuilder rb{ctx, 3}; | 526 | IPC::ResponseBuilder rb{ctx, 3}; |
| 527 | rb.Push(RESULT_SUCCESS); | 527 | rb.Push(RESULT_SUCCESS); |
| 528 | rb.Push<u32>(size); | 528 | rb.Push(static_cast<u32>(size)); |
| 529 | } | 529 | } |
| 530 | 530 | ||
| 531 | FileSys::VirtualDir root; | 531 | FileSys::VirtualDir root; |