merged removing assert from RC_0_16
This commit is contained in:
parent
97c69cb041
commit
7ce6425534
|
@ -100,7 +100,6 @@ namespace libtorrent
|
||||||
char* page_aligned_allocator::malloc(size_type bytes)
|
char* page_aligned_allocator::malloc(size_type bytes)
|
||||||
{
|
{
|
||||||
TORRENT_ASSERT(bytes >= page_size());
|
TORRENT_ASSERT(bytes >= page_size());
|
||||||
TORRENT_ASSERT(bytes % page_size() == 0);
|
|
||||||
#ifdef TORRENT_DEBUG_BUFFERS
|
#ifdef TORRENT_DEBUG_BUFFERS
|
||||||
int page = page_size();
|
int page = page_size();
|
||||||
int num_pages = (bytes + (page-1)) / page + 2;
|
int num_pages = (bytes + (page-1)) / page + 2;
|
||||||
|
|
Loading…
Reference in New Issue