1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

fix: return correct bitfield when fully downloaded (#2799)

Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
David Beinder 2022-03-22 20:01:07 +01:00 committed by GitHub
parent 04a4f4a10c
commit 53dc3a41b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,7 +176,7 @@ std::vector<uint8_t> tr_bitfield::raw() const
if (hasAll())
{
setAllTrue(std::data(raw), std::size(raw));
setAllTrue(std::data(raw), bit_count_);
}
return raw;