forked from premiere/premiere-libtorrent
fix build with allocator debugging
This commit is contained in:
parent
a427f4d4d3
commit
16594d27ef
|
@ -124,7 +124,7 @@ namespace libtorrent
|
|||
// fprintf(stderr, "malloc: %p head: %p tail: %p size: %d\n", ret + page, ret, ret + page + bytes, int(bytes));
|
||||
|
||||
return ret + page;
|
||||
#endif
|
||||
#else
|
||||
|
||||
#if TORRENT_USE_POSIX_MEMALIGN
|
||||
void* ret;
|
||||
|
@ -143,6 +143,7 @@ namespace libtorrent
|
|||
#else
|
||||
return (char*)valloc(bytes);
|
||||
#endif
|
||||
#endif // TORRENT_DEBUG_BUFFERS
|
||||
}
|
||||
|
||||
void page_aligned_allocator::free(char* const block)
|
||||
|
|
Loading…
Reference in New Issue