summaryrefslogtreecommitdiffstats
path: root/src/serialbus/qmodbustcpserver_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialbus/qmodbustcpserver_p.h')
-rw-r--r--src/serialbus/qmodbustcpserver_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialbus/qmodbustcpserver_p.h b/src/serialbus/qmodbustcpserver_p.h
index 6fe6511..91e3bfe 100644
--- a/src/serialbus/qmodbustcpserver_p.h
+++ b/src/serialbus/qmodbustcpserver_p.h
@@ -205,7 +205,7 @@ public:
return;
}
- int writtenBytes = socket->write(result);
+ qint64 writtenBytes = socket->write(result);
if (writtenBytes == -1 || writtenBytes < result.size()) {
qCDebug(QT_MODBUS) << "(TCP server) Cannot write requested response to socket.";
forwardError(QModbusTcpServer::tr("Could not write response to client"),