fixed build warnings

This commit is contained in:
Arvid Norberg
2011-02-14 01:59:01 +00:00
parent 8bb71da401
commit 5864a883e6
10 changed files with 23 additions and 19 deletions

View File

@@ -242,7 +242,7 @@ namespace libtorrent
TORRENT_ASSERT(str != 0);
TORRENT_ASSERT(len >= 0);
TORRENT_ASSERT(offset >= 0);
TORRENT_ASSERT(offset < sizeof(unreserved_chars)-1);
TORRENT_ASSERT(offset < int(sizeof(unreserved_chars))-1);
std::string ret;
for (int i = 0; i < len; ++i)