yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #8403 from Morph1984/cast

gdbstub: Explicitly cast return type to u8
This commit is contained in:
liamwhite 2022-06-01 12:30:32 -04:00 committed by GitHub
commit 503feba7e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -358,8 +358,8 @@ std::optional<std::string> GDBStub::DetachCommand() {
}
u8 GDBStub::CalculateChecksum(std::string_view data) {
return static_cast<u8>(
std::accumulate(data.begin(), data.end(), u8{0}, [](u8 lhs, u8 rhs) { return lhs + rhs; }));
return std::accumulate(data.begin(), data.end(), u8{0},
[](u8 lhs, u8 rhs) { return static_cast<u8>(lhs + rhs); });
}
void GDBStub::SendReply(std::string_view data) {