diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-06-01 18:30:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-01 18:30:32 +0200 |
commit | 503feba7e4e76ab325a820731f8c051247497cf5 (patch) | |
tree | bb2eb7a4a8350385fad8703cd1a8fcc92ff0f82a /src/core/debugger/gdbstub.cpp | |
parent | Merge pull request #8394 from liamwhite/debugger (diff) | |
parent | gdbstub: Explicitly cast return type to u8 (diff) | |
download | yuzu-503feba7e4e76ab325a820731f8c051247497cf5.tar yuzu-503feba7e4e76ab325a820731f8c051247497cf5.tar.gz yuzu-503feba7e4e76ab325a820731f8c051247497cf5.tar.bz2 yuzu-503feba7e4e76ab325a820731f8c051247497cf5.tar.lz yuzu-503feba7e4e76ab325a820731f8c051247497cf5.tar.xz yuzu-503feba7e4e76ab325a820731f8c051247497cf5.tar.zst yuzu-503feba7e4e76ab325a820731f8c051247497cf5.zip |
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() { } 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) { |