diff options
| author | bunnei <bunneidev@gmail.com> | 2019-11-15 12:08:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-15 12:08:50 -0500 |
| commit | 3e0e4f146b3f2ad7f1935a61141c38cdce87e04f (patch) | |
| tree | 75f29ce4bb9d84f9d9722b7aa86d71e805cac8cc /src/core/hle/service/ns/pl_u.cpp | |
| parent | bb31df62bb3430ed254a81859c44ff864b614e8e (diff) | |
| parent | 47a6bb2d5ba9c8488ef1588c99fbebd8d9417374 (diff) | |
Merge pull request #3091 from lioncash/core-conversion
core: Make most implicit type conversion warnings errors on MSVC
Diffstat (limited to 'src/core/hle/service/ns/pl_u.cpp')
| -rw-r--r-- | src/core/hle/service/ns/pl_u.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/ns/pl_u.cpp b/src/core/hle/service/ns/pl_u.cpp index 23477315f..db433305f 100644 --- a/src/core/hle/service/ns/pl_u.cpp +++ b/src/core/hle/service/ns/pl_u.cpp @@ -97,7 +97,7 @@ void EncryptSharedFont(const std::vector<u32>& input, std::vector<u8>& output, const auto key = Common::swap32(EXPECTED_RESULT ^ EXPECTED_MAGIC); std::vector<u32> transformed_font(input.size() + 2); transformed_font[0] = Common::swap32(EXPECTED_MAGIC); - transformed_font[1] = Common::swap32(input.size() * sizeof(u32)) ^ key; + transformed_font[1] = Common::swap32(static_cast<u32>(input.size() * sizeof(u32))) ^ key; std::transform(input.begin(), input.end(), transformed_font.begin() + 2, [key](u32 in) { return in ^ key; }); std::memcpy(output.data() + offset, transformed_font.data(), |
