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));
|
// fprintf(stderr, "malloc: %p head: %p tail: %p size: %d\n", ret + page, ret, ret + page + bytes, int(bytes));
|
||||||
|
|
||||||
return ret + page;
|
return ret + page;
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
#if TORRENT_USE_POSIX_MEMALIGN
|
#if TORRENT_USE_POSIX_MEMALIGN
|
||||||
void* ret;
|
void* ret;
|
||||||
|
@ -143,6 +143,7 @@ namespace libtorrent
|
||||||
#else
|
#else
|
||||||
return (char*)valloc(bytes);
|
return (char*)valloc(bytes);
|
||||||
#endif
|
#endif
|
||||||
|
#endif // TORRENT_DEBUG_BUFFERS
|
||||||
}
|
}
|
||||||
|
|
||||||
void page_aligned_allocator::free(char* const block)
|
void page_aligned_allocator::free(char* const block)
|
||||||
|
|
Loading…
Reference in New Issue