Commit 2c8cf96a authored by Nicolas Fella's avatar Nicolas Fella Committed by Aleix Pol Gonzalez
Browse files

Read payload size as qint64

parent b75a74ab
Pipeline #16859 failed with stage
in 7 minutes and 24 seconds
......@@ -132,7 +132,7 @@ bool NetworkPacket::unserialize(const QByteArray& a, NetworkPacket* np)
qvariant2qobject(variant, np);
if (np->m_payloadSize == -1) {
np->m_payloadSize = np->get<int>(QStringLiteral("size"), -1);
np->m_payloadSize = np->get<qint64>(QStringLiteral("size"), -1);
}
np->m_payloadTransferInfo = variant[QStringLiteral("payloadTransferInfo")].toMap(); //Will return an empty qvariantmap if was not present, which is ok
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment