diff options
| author | 2019-11-12 05:05:13 -0500 | |
|---|---|---|
| committer | 2019-11-12 07:55:39 -0500 | |
| commit | 86a1eb7789482456df503b74306dc5e1a28c1013 (patch) | |
| tree | 4fc18fda2f52ac03ed931d638334c8ad63736ba9 /src/core/gdbstub/gdbstub.cpp | |
| parent | kernel: Resolve sign conversion warnings (diff) | |
| download | yuzu-86a1eb7789482456df503b74306dc5e1a28c1013.tar.gz yuzu-86a1eb7789482456df503b74306dc5e1a28c1013.tar.xz yuzu-86a1eb7789482456df503b74306dc5e1a28c1013.zip | |
gdbstub: Resolve sign conversion errors
Diffstat (limited to 'src/core/gdbstub/gdbstub.cpp')
| -rw-r--r-- | src/core/gdbstub/gdbstub.cpp | 3 |
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() { | |||
| 468 | 468 | ||
| 469 | /// Calculate the checksum of the current command buffer. | 469 | /// Calculate the checksum of the current command buffer. |
| 470 | static u8 CalculateChecksum(const u8* buffer, std::size_t length) { | 470 | static u8 CalculateChecksum(const u8* buffer, std::size_t length) { |
| 471 | return static_cast<u8>(std::accumulate(buffer, buffer + length, 0, std::plus<u8>())); | 471 | return static_cast<u8>(std::accumulate(buffer, buffer + length, u8{0}, |
| 472 | [](u8 lhs, u8 rhs) { return u8(lhs + rhs); })); | ||
| 472 | } | 473 | } |
| 473 | 474 | ||
| 474 | /** | 475 | /** |