From b1320232cc5b38738dcc609a6b98b2ad35e7184e Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 31 May 2007 07:20:14 +0000 Subject: [PATCH] svn lb 1302 --- libtorrent/src/torrent_handle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libtorrent/src/torrent_handle.cpp b/libtorrent/src/torrent_handle.cpp index b1dcdc9b9..44dcba7f5 100755 --- a/libtorrent/src/torrent_handle.cpp +++ b/libtorrent/src/torrent_handle.cpp @@ -566,6 +566,7 @@ namespace libtorrent for (int k = 0; k < 8; ++k) v |= i->info[j*8+k].finished?(1 << k):0; bitmask.insert(bitmask.end(), v); + assert(bits == 8 || j == num_bitmask_bytes - 1); } piece_struct["bitmask"] = bitmask;