fix from upstream

This commit is contained in:
Miguel Freitas 2014-02-14 12:10:19 -02:00
parent 8330f2d98d
commit 487138ebcb

View File

@ -1772,7 +1772,7 @@ namespace libtorrent
#endif
TORRENT_ASSERT(j.buffer);
session_settings const* s = ((session_settings*)j.buffer);
TORRENT_ASSERT(s->cache_size >= 0);
TORRENT_ASSERT(s->cache_size >= -1);
TORRENT_ASSERT(s->cache_expiry > 0);
#if defined TORRENT_WINDOWS