Read payload size as qint64

This commit is contained in:
Nicolas Fella 2020-03-18 00:41:12 +01:00
parent 9f1101c9c1
commit c807d84a44

View file

@ -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