diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-11-12 05:05:13 -0500 | 
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-11-12 07:55:39 -0500 | 
| commit | 86a1eb7789482456df503b74306dc5e1a28c1013 (patch) | |
| tree | 4fc18fda2f52ac03ed931d638334c8ad63736ba9 /src/core | |
| parent | 12dc918937467b2579b9e2738820c542ae4fdd4f (diff) | |
gdbstub: Resolve sign conversion errors
Diffstat (limited to 'src/core')
| -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() {  /// 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); }));  }  /** | 
