aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/ns/pl_u.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-11-15 12:08:50 -0500
committerGitHub <noreply@github.com>2019-11-15 12:08:50 -0500
commit3e0e4f146b3f2ad7f1935a61141c38cdce87e04f (patch)
tree75f29ce4bb9d84f9d9722b7aa86d71e805cac8cc /src/core/hle/service/ns/pl_u.cpp
parentbb31df62bb3430ed254a81859c44ff864b614e8e (diff)
parent47a6bb2d5ba9c8488ef1588c99fbebd8d9417374 (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.cpp2
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(),