aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nwm/uds_beacon.cpp
diff options
context:
space:
mode:
authorSebastian Valle <subv2112@gmail.com>2017-09-30 08:22:14 -0500
committerGitHub <noreply@github.com>2017-09-30 08:22:14 -0500
commita3de996ae7c41bb8d475b47dcd08abdd571cfc73 (patch)
tree016f6866d15fb9a41a15666f492bed352d95b523 /src/core/hle/service/nwm/uds_beacon.cpp
parentb07af7dda822898e9c8f231c5ddcd1741d93dbef (diff)
parenta13ab958cbba75bc9abd1ca50f3030a10a75784e (diff)
Merge pull request #2962 from huwpascoe/static_cast
Fixed type conversion ambiguity
Diffstat (limited to 'src/core/hle/service/nwm/uds_beacon.cpp')
-rw-r--r--src/core/hle/service/nwm/uds_beacon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nwm/uds_beacon.cpp b/src/core/hle/service/nwm/uds_beacon.cpp
index 552eaf65e..73a80d940 100644
--- a/src/core/hle/service/nwm/uds_beacon.cpp
+++ b/src/core/hle/service/nwm/uds_beacon.cpp
@@ -243,7 +243,7 @@ std::vector<u8> GenerateNintendoFirstEncryptedDataTag(const NetworkInfo& network
EncryptedDataTag tag{};
tag.header.tag_id = static_cast<u8>(TagId::VendorSpecific);
- tag.header.length = sizeof(tag) - sizeof(TagHeader) + payload_size;
+ tag.header.length = static_cast<u8>(sizeof(tag) - sizeof(TagHeader) + payload_size);
tag.oui_type = static_cast<u8>(NintendoTagId::EncryptedData0);
tag.oui = NintendoOUI;
@@ -279,7 +279,7 @@ std::vector<u8> GenerateNintendoSecondEncryptedDataTag(const NetworkInfo& networ
EncryptedDataTag tag{};
tag.header.tag_id = static_cast<u8>(TagId::VendorSpecific);
- tag.header.length = tag_length;
+ tag.header.length = static_cast<u8>(tag_length);
tag.oui_type = static_cast<u8>(NintendoTagId::EncryptedData1);
tag.oui = NintendoOUI;