diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2022-06-01 12:30:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-01 12:30:32 -0400 |
| commit | d92703680c4c3ad4ba17d544b5807ff1ea70bc02 (patch) | |
| tree | bb2eb7a4a8350385fad8703cd1a8fcc92ff0f82a /src/core/debugger | |
| parent | 13a8ca8266f18e5236b59c03b41a5e8907f61fa7 (diff) | |
| parent | 0767bdd48657a5c484f15296107727b57e05f331 (diff) | |
Merge pull request #8403 from Morph1984/cast
gdbstub: Explicitly cast return type to u8
Diffstat (limited to 'src/core/debugger')
| -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 718c45952d..ee75981658 100644 --- a/src/core/debugger/gdbstub.cpp +++ b/src/core/debugger/gdbstub.cpp @@ -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) { |
