summaryrefslogtreecommitdiffstats
path: root/src/core/gdbstub/gdbstub.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-11-12 11:05:13 +0100
committerLioncash <mathew1800@gmail.com>2019-11-12 13:55:39 +0100
commit86a1eb7789482456df503b74306dc5e1a28c1013 (patch)
tree4fc18fda2f52ac03ed931d638334c8ad63736ba9 /src/core/gdbstub/gdbstub.cpp
parentkernel: Resolve sign conversion warnings (diff)
downloadyuzu-86a1eb7789482456df503b74306dc5e1a28c1013.tar
yuzu-86a1eb7789482456df503b74306dc5e1a28c1013.tar.gz
yuzu-86a1eb7789482456df503b74306dc5e1a28c1013.tar.bz2
yuzu-86a1eb7789482456df503b74306dc5e1a28c1013.tar.lz
yuzu-86a1eb7789482456df503b74306dc5e1a28c1013.tar.xz
yuzu-86a1eb7789482456df503b74306dc5e1a28c1013.tar.zst
yuzu-86a1eb7789482456df503b74306dc5e1a28c1013.zip
Diffstat (limited to '')
-rw-r--r--src/core/gdbstub/gdbstub.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index 20bb50868..54ed680db 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -468,7 +468,8 @@ static u8 ReadByte() {
/// Calculate the checksum of the current command buffer.
static u8 CalculateChecksum(const u8* buffer, std::size_t length) {
- return static_cast<u8>(std::accumulate(buffer, buffer + length, 0, std::plus<u8>()));
+ return static_cast<u8>(std::accumulate(buffer, buffer + length, u8{0},
+ [](u8 lhs, u8 rhs) { return u8(lhs + rhs); }));
}
/**