some fixes

This commit is contained in:
Arvid Norberg 2010-11-25 10:46:52 +00:00
parent 6917410d20
commit 8ff9b6338b
2 changed files with 1 additions and 3 deletions

View File

@ -132,7 +132,7 @@ int main(int argc, char* argv[])
i != t.end_files(); ++i, ++index) i != t.end_files(); ++i, ++index)
{ {
int first = t.map_file(index, 0, 0).piece; int first = t.map_file(index, 0, 0).piece;
int last = t.map_file(index, (std::max)(i->size-1, size_type(0)), 0).piece; int last = t.map_file(index, (std::max)(size_type(i->size)-1, size_type(0)), 0).piece;
printf(" %11"PRId64" %c%c%c%c [ %4d, %4d ] %7u %s %s %s%s\n" printf(" %11"PRId64" %c%c%c%c [ %4d, %4d ] %7u %s %s %s%s\n"
, i->size , i->size
, (i->pad_file?'p':'-') , (i->pad_file?'p':'-')

View File

@ -180,10 +180,8 @@ namespace libtorrent
continue; continue;
} }
} }
printf("lazy_bdecode item_limit: %d\n", item_limit);
return 0; return 0;
} }
printf("lazy_bdecode item_limit: %d\n", item_limit);
return 0; return 0;
} }