*** empty log message ***

This commit is contained in:
Arvid Norberg 2004-01-16 13:07:47 +00:00
parent 68d9c4f4b0
commit fb83b4c062
1 changed files with 9 additions and 1 deletions

View File

@ -212,7 +212,15 @@ namespace libtorrent {
in.seek(file_offset);
// assert(size_type(in.tellg()) == file_offset);
assert(size_type(in.tell()) == file_offset);
#ifndef NDEBUG
size_type p = in.tell();
if (p != file_offset)
{
std::cerr << "in.tell(): " << p << "\n"
"file_offset: " << file_offset << "\n";
}
assert(in.tell() == file_offset);
#endif
size_type left_to_read = size;
size_type slot_size = m_pimpl->info.piece_size(slot);