mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-25 18:46:55 +01:00
GDBStub: Fix checkSum string to int conversion (#1029)
This commit is contained in:
parent
f3c95f72e7
commit
5047c4d083
@ -356,7 +356,7 @@ void GDBServer::ThreadFunc()
|
||||
}
|
||||
char checkSumStr[2];
|
||||
receiveMessage(checkSumStr, 2);
|
||||
uint32_t checkSum = std::stoi(checkSumStr, nullptr, 16);
|
||||
uint32_t checkSum = std::stoi(std::string(checkSumStr, sizeof(checkSumStr)), nullptr, 16);
|
||||
assert((checkedSum & 0xFF) == checkSum);
|
||||
|
||||
HandleCommand(message);
|
||||
|
Loading…
Reference in New Issue
Block a user