diff --git a/include/libtorrent/piece_picker.hpp b/include/libtorrent/piece_picker.hpp index 132636bb2..e85cb9ce7 100644 --- a/include/libtorrent/piece_picker.hpp +++ b/include/libtorrent/piece_picker.hpp @@ -161,8 +161,8 @@ namespace libtorrent struct downloading_piece { - downloading_piece() : index(UINT32_MAX) - , info_idx(UINT16_MAX) + downloading_piece() : index((std::numeric_limits::max)()) + , info_idx((std::numeric_limits::max)()) , finished(0) , passed_hash_check(0) , writing(0)