diff --git a/include/libtorrent/peer_connection.hpp b/include/libtorrent/peer_connection.hpp index 993c3a161..0062cc486 100644 --- a/include/libtorrent/peer_connection.hpp +++ b/include/libtorrent/peer_connection.hpp @@ -1109,9 +1109,9 @@ namespace libtorrent friend void* asio_handler_allocate( std::size_t size, allocating_handler* 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;