summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ns/pl_u.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-11-12 11:38:12 +0100
committerLioncash <mathew1800@gmail.com>2019-11-12 13:55:39 +0100
commitf11b87ebf1cd5770f9128e62931183b0c9331067 (patch)
tree286bed12845e8843e88d2a317388d115b69d2d95 /src/core/hle/service/ns/pl_u.cpp
parentperf_stats: Resolve implicit int to double conversion error (diff)
downloadyuzu-f11b87ebf1cd5770f9128e62931183b0c9331067.tar
yuzu-f11b87ebf1cd5770f9128e62931183b0c9331067.tar.gz
yuzu-f11b87ebf1cd5770f9128e62931183b0c9331067.tar.bz2
yuzu-f11b87ebf1cd5770f9128e62931183b0c9331067.tar.lz
yuzu-f11b87ebf1cd5770f9128e62931183b0c9331067.tar.xz
yuzu-f11b87ebf1cd5770f9128e62931183b0c9331067.tar.zst
yuzu-f11b87ebf1cd5770f9128e62931183b0c9331067.zip
Diffstat (limited to '')
-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(),