Fix wrong size

Fix up cf96e6c642.
This commit is contained in:
Chocobo1 2022-02-12 01:28:08 +08:00
parent 56c3983885
commit 70eed10a34
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -65,6 +65,6 @@ namespace BitTorrent::LT
for (int i = 0; i < dataLength; ++i)
tmp[i] = reverseByte(bitsData[i]);
return QBitArray::fromBits(tmp.data(), tmp.size());
return QBitArray::fromBits(tmp.data(), bits.size());
}
}