GdbServer: Fix recv issuse with negative numbers

This commit is contained in:
Scott Mansell authored and Stefanos Kornilios Mitsis Poiitidis committed 2020-03-06 07:56:01 +02:00
1 parent 23db0f66ec
commit 93ad5bfcc6
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ int NetStream::NetBuf::sync() {
}
std::streambuf::int_type NetStream::NetBuf::underflow() {
size_t size = recv(socket, (void *)std::begin(input_buffer), sizeof(input_buffer), 0);
ssize_t size = recv(socket, (void *)std::begin(input_buffer), sizeof(input_buffer), 0);
if (size <= 0) {
setg(nullptr, nullptr, nullptr);