fixed some windows build issues

This commit is contained in:
Arvid Norberg 2010-12-19 08:12:31 +00:00
parent 3616c2f720
commit 650f02eba7
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;
}
}