fixed assert typo

This commit is contained in:
Arvid Norberg 2010-07-15 06:31:39 +00:00
parent 4c6be42b74
commit 9a9c121ec0
1 changed files with 2 additions and 2 deletions

View File

@ -1109,9 +1109,9 @@ namespace libtorrent
friend void* asio_handler_allocate(
std::size_t size, allocating_handler<Handler, Size>* ctx)
{
assert(size <= Size);
TORRENT_ASSERT(size <= Size);
#ifdef TORRENT_DEBUG
assert(!ctx->storage.used);
TORRENT_ASSERT(!ctx->storage.used);
ctx->storage.used = true;
#endif
return &ctx->storage.bytes;