diff --git a/include/libtorrent/torrent.hpp b/include/libtorrent/torrent.hpp index eb2b5890d..c49ef85d3 100644 --- a/include/libtorrent/torrent.hpp +++ b/include/libtorrent/torrent.hpp @@ -1114,6 +1114,10 @@ namespace libtorrent boost::uint32_t m_total_failed_bytes; boost::uint32_t m_total_redundant_bytes; + // the sequence number for this torrent, this is a + // monotonically increasing number for each added torrent + int m_sequence_number; + // ============================== // The following members are specifically // ordered to make the 24 bit members @@ -1258,10 +1262,6 @@ namespace libtorrent // the number of bytes of padding files unsigned int m_padding:24; - // the sequence number for this torrent, this is a - // monotonically increasing number for each added torrent - boost::int16_t m_sequence_number; - // the scrape data from the tracker response, this // is optional and may be 0xffffff unsigned int m_complete:24; diff --git a/src/torrent.cpp b/src/torrent.cpp index c31bbc72d..ea6a9cb7b 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -370,6 +370,7 @@ namespace libtorrent , m_piece_time_deviation(0) , m_total_failed_bytes(0) , m_total_redundant_bytes(0) + , m_sequence_number(seq) , m_upload_mode_time(0) , m_state(torrent_status::checking_resume_data) , m_storage_mode(p.storage_mode) @@ -400,7 +401,6 @@ namespace libtorrent , m_queued_for_checking(false) , m_max_connections(~0) , m_padding(0) - , m_sequence_number(seq) , m_complete(0xffffff) , m_priority(0) , m_incomplete(0xffffff)