Skip to content

Commit

Permalink
Fix CI warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed May 5, 2024
1 parent 1799950 commit 929feb7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/xmpp/xmpp-im/jingle-ft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,13 @@ namespace XMPP { namespace Jingle { namespace FileTransfer {
return; // we will come back on readyRead
}
data.resize(sz);
sz = device->read(data.data(), sz);
if (sz == -1) {
auto readSz = device->read(data.data(), sz);
if (readSz < 0) {
handleStreamFail(QString::fromLatin1("source device failed"));
return;
}
data.resize(sz);
if (sz == 0) {
data.resize(readSz);
if (readSz == 0) {
if (!bytesLeft) {
lastReason = Reason(Reason::Condition::Success);
if (hasher) {
Expand Down Expand Up @@ -423,7 +423,7 @@ namespace XMPP { namespace Jingle { namespace FileTransfer {
writeLoggingStarted = true;
}
auto bs = getBlockSize();
if (q->pad()->session()->role() == q->senders() && connection->bytesToWrite() < bs) {
if (q->pad()->session()->role() == q->senders() && quint64(connection->bytesToWrite()) < bs) {
writeNextBlockToTransport();
}
},
Expand Down

0 comments on commit 929feb7

Please sign in to comment.