forked from premiere/premiere-libtorrent
fixed conversion warnings in 32 bits
This commit is contained in:
parent
3b412f5ab8
commit
377e800e72
|
@ -121,8 +121,8 @@ namespace {
|
|||
|
||||
ret.last_seen_complete = std::time_t(rd.dict_find_int_value("last_seen_complete"));
|
||||
|
||||
ret.last_download = rd.dict_find_int_value("last_download", 0);
|
||||
ret.last_upload = rd.dict_find_int_value("last_upload", 0);
|
||||
ret.last_download = std::time_t(rd.dict_find_int_value("last_download", 0));
|
||||
ret.last_upload = std::time_t(rd.dict_find_int_value("last_upload", 0));
|
||||
|
||||
// scrape data cache
|
||||
ret.num_complete = int(rd.dict_find_int_value("num_complete", -1));
|
||||
|
|
|
@ -6114,8 +6114,8 @@ bool is_downloading_state(int const st)
|
|||
ret.finished_time = static_cast<int>(total_seconds(finished_time()));
|
||||
ret.seeding_time = static_cast<int>(total_seconds(seeding_time()));
|
||||
ret.last_seen_complete = m_last_seen_complete;
|
||||
ret.last_upload = total_seconds(m_last_upload.time_since_epoch());
|
||||
ret.last_download = total_seconds(m_last_download.time_since_epoch());
|
||||
ret.last_upload = std::time_t(total_seconds(m_last_upload.time_since_epoch()));
|
||||
ret.last_download = std::time_t(total_seconds(m_last_download.time_since_epoch()));
|
||||
|
||||
ret.num_complete = m_complete;
|
||||
ret.num_incomplete = m_incomplete;
|
||||
|
|
Loading…
Reference in New Issue