GDBStub: Fix checkSum string to int conversion (#1029)
This commit is contained in:
parent
f3c95f72e7
commit
5047c4d083
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue