mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Merge pull request #8403 from Morph1984/cast
gdbstub: Explicitly cast return type to u8
This commit is contained in:
commit
503feba7e4
|
@ -358,8 +358,8 @@ std::optional<std::string> GDBStub::DetachCommand() {
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 GDBStub::CalculateChecksum(std::string_view data) {
|
u8 GDBStub::CalculateChecksum(std::string_view data) {
|
||||||
return static_cast<u8>(
|
return std::accumulate(data.begin(), data.end(), u8{0},
|
||||||
std::accumulate(data.begin(), data.end(), u8{0}, [](u8 lhs, u8 rhs) { return lhs + rhs; }));
|
[](u8 lhs, u8 rhs) { return static_cast<u8>(lhs + rhs); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void GDBStub::SendReply(std::string_view data) {
|
void GDBStub::SendReply(std::string_view data) {
|
||||||
|
|
Loading…
Reference in a new issue