diff options
Diffstat (limited to 'src/core/debugger/gdbstub.cpp')
| -rw-r--r-- | src/core/debugger/gdbstub.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/debugger/gdbstub.cpp b/src/core/debugger/gdbstub.cpp index 718c45952..ee7598165 100644 --- a/src/core/debugger/gdbstub.cpp +++ b/src/core/debugger/gdbstub.cpp | |||
| @@ -358,8 +358,8 @@ std::optional<std::string> GDBStub::DetachCommand() { | |||
| 358 | } | 358 | } |
| 359 | 359 | ||
| 360 | u8 GDBStub::CalculateChecksum(std::string_view data) { | 360 | u8 GDBStub::CalculateChecksum(std::string_view data) { |
| 361 | return static_cast<u8>( | 361 | return std::accumulate(data.begin(), data.end(), u8{0}, |
| 362 | std::accumulate(data.begin(), data.end(), u8{0}, [](u8 lhs, u8 rhs) { return lhs + rhs; })); | 362 | [](u8 lhs, u8 rhs) { return static_cast<u8>(lhs + rhs); }); |
| 363 | } | 363 | } |
| 364 | 364 | ||
| 365 | void GDBStub::SendReply(std::string_view data) { | 365 | void GDBStub::SendReply(std::string_view data) { |