forked from premiere/premiere-libtorrent
fixed some windows build issues
This commit is contained in:
parent
3616c2f720
commit
650f02eba7
|
@ -188,8 +188,8 @@ namespace libtorrent
|
|||
#ifdef TORRENT_DEBUG
|
||||
bool is_network_thread() const
|
||||
{
|
||||
if (m_network_thread == 0) return true;
|
||||
#if defined BOOST_HAS_PTHREADS
|
||||
if (m_network_thread == 0) return true;
|
||||
return m_network_thread == pthread_self();
|
||||
#endif
|
||||
return true;
|
||||
|
|
|
@ -1067,7 +1067,7 @@ namespace libtorrent
|
|||
{
|
||||
for (int k = 0; k < int(i->iov_len); k += m_page_size)
|
||||
{
|
||||
cur_seg->Buffer = PtrToPtr64(((char*)i->iov_base) + k);
|
||||
cur_seg->Buffer = PtrToPtr64((((char*)i->iov_base) + k));
|
||||
++cur_seg;
|
||||
}
|
||||
}
|
||||
|
@ -1250,7 +1250,7 @@ namespace libtorrent
|
|||
{
|
||||
for (int k = 0; k < int(i->iov_len); k += m_page_size)
|
||||
{
|
||||
cur_seg->Buffer = PtrToPtr64(((char*)i->iov_base) + k);
|
||||
cur_seg->Buffer = PtrToPtr64((((char*)i->iov_base) + k));
|
||||
++cur_seg;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue