summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/aoc
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-10-07 15:25:46 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2018-10-07 15:25:46 +0200
commitfa3f3cd07fc696fe06b595eb22f15790a5c34147 (patch)
tree4b232d888e366fc8e5aa6e7f57e633acc1a9cfec /src/core/hle/service/aoc
parentMerge pull request #1396 from DarkLordZach/packed-updates (diff)
downloadyuzu-fa3f3cd07fc696fe06b595eb22f15790a5c34147.tar
yuzu-fa3f3cd07fc696fe06b595eb22f15790a5c34147.tar.gz
yuzu-fa3f3cd07fc696fe06b595eb22f15790a5c34147.tar.bz2
yuzu-fa3f3cd07fc696fe06b595eb22f15790a5c34147.tar.lz
yuzu-fa3f3cd07fc696fe06b595eb22f15790a5c34147.tar.xz
yuzu-fa3f3cd07fc696fe06b595eb22f15790a5c34147.tar.zst
yuzu-fa3f3cd07fc696fe06b595eb22f15790a5c34147.zip
Diffstat (limited to 'src/core/hle/service/aoc')
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp
index 79580bcd9..0ecfb5af1 100644
--- a/src/core/hle/service/aoc/aoc_u.cpp
+++ b/src/core/hle/service/aoc/aoc_u.cpp
@@ -61,13 +61,13 @@ AOC_U::AOC_U() : ServiceFramework("aoc:u"), add_on_content(AccumulateAOCTitleIDs
AOC_U::~AOC_U() = default;
void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) {
- IPC::ResponseBuilder rb{ctx, 4};
+ IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
const auto current = Core::System::GetInstance().CurrentProcess()->GetTitleID();
- rb.Push<u32>(std::count_if(add_on_content.begin(), add_on_content.end(), [&current](u64 tid) {
- return (tid & DLC_BASE_TITLE_ID_MASK) == current;
- }));
+ rb.Push<u32>(static_cast<u32>(
+ std::count_if(add_on_content.begin(), add_on_content.end(),
+ [&current](u64 tid) { return (tid & DLC_BASE_TITLE_ID_MASK) == current; })));
}
void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
@@ -91,7 +91,7 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
return;
}
- count = std::min<size_t>(out.size() - offset, count);
+ count = static_cast<u32>(std::min<size_t>(out.size() - offset, count));
std::rotate(out.begin(), out.begin() + offset, out.end());
out.resize(count);