diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-10-13 21:20:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 21:20:44 +0200 |
commit | c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88 (patch) | |
tree | 9565ff464bbb9e5a0aa66e6e310098314e88d019 /src/core/hle/service/vi | |
parent | Merge pull request #3929 from FearlessTobi/ticket-keys (diff) | |
parent | core/CMakeLists: Make some warnings errors (diff) | |
download | yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.gz yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.bz2 yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.lz yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.xz yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.tar.zst yuzu-c5b3c8d06bcfa343b2cecbfc60b3530b306ebe88.zip |
Diffstat (limited to 'src/core/hle/service/vi')
-rw-r--r-- | src/core/hle/service/vi/vi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 480d34725..d380c60fb 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -159,7 +159,7 @@ public: header.data_size = static_cast<u32_le>(write_index - sizeof(Header)); header.data_offset = sizeof(Header); header.objects_size = 4; - header.objects_offset = sizeof(Header) + header.data_size; + header.objects_offset = static_cast<u32>(sizeof(Header) + header.data_size); std::memcpy(buffer.data(), &header, sizeof(Header)); return buffer; |