VERY experimental Nintendo Switch 2 emulator
C++
gdbstub: Explicitly cast return type to u8
Morph0767bdd48657
diff --git a/src/core/debugger/gdbstub.cpp b/src/core/debugger/gdbstub.cppindex 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) {