fix c++98 build

This commit is contained in:
arvidn 2015-11-07 21:14:52 -05:00
parent a48cb785d0
commit 2592acfd8c
2 changed files with 2 additions and 2 deletions

View File

@ -836,7 +836,7 @@ namespace libtorrent
#ifdef TORRENT_OPTIMIZE_MEMORY_USAGE
enum { max_pieces = piece_pos::we_have_index - 1 };
#else
enum { max_pieces = (std::numeric_limits<int>::max)() - 1 };
enum { max_pieces = INT_MAX - 1 };
#endif
};

@ -1 +1 @@
Subproject commit a5479665ad3b2366721a166dcda527b987825f86
Subproject commit fa1e83614ca96b4802a4c6cea9488a93111be86d