diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-11-12 17:08:09 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-11-18 16:53:47 +0100 |
commit | 8b433beff34c382e50334bb59c4f71394845558c (patch) | |
tree | f52f432b2ee5f4ef3917c1c0e2fa052930d68f3a /src/core/hle/service/am/am.cpp | |
parent | am: Allow applets to push multiple and different channels of data (diff) | |
download | yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar.gz yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar.bz2 yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar.lz yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar.xz yuzu-8b433beff34c382e50334bb59c4f71394845558c.tar.zst yuzu-8b433beff34c382e50334bb59c4f71394845558c.zip |
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 3f8d97d31..d040d4776 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -718,7 +718,7 @@ void IStorageAccessor::Write(Kernel::HLERequestContext& ctx) { const u64 offset{rp.Pop<u64>()}; const std::vector<u8> data{ctx.ReadBuffer()}; - const auto size = std::min(data.size(), backing.buffer.size() - offset); + const auto size = std::min<std::size_t>(data.size(), backing.buffer.size() - offset); std::memcpy(&backing.buffer[offset], data.data(), size); |