mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
Fixed used on unsigned
This commit is contained in:
parent
e5248683f0
commit
c2f80f402d
@ -113,12 +113,13 @@ bool RiaSocketTools::writeBlockData(RiaSocketServer* server, QTcpSocket* socket,
|
||||
|
||||
quint64 maxBlockSize = RiaApplication::instance()->preferences()->blockSize();
|
||||
|
||||
|
||||
while (bytesWritten < bytesToWrite)
|
||||
{
|
||||
quint64 byteCountToWrite = qMin(bytesToWrite - bytesWritten, maxBlockSize);
|
||||
|
||||
quint64 actuallyBytesWritten = socket->write(data + bytesWritten, byteCountToWrite);
|
||||
if (actuallyBytesWritten == -1)
|
||||
qint64 actuallyBytesWritten = socket->write(data + bytesWritten, byteCountToWrite);
|
||||
if (actuallyBytesWritten < 0)
|
||||
{
|
||||
if (server)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user