fixed some windows build issues
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user