From 9c8f5327b5e2a4c4ecb02baaac12399fc1cd32e3 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 19 Nov 2006 15:23:41 +0000 Subject: [PATCH] fixed incorrect assert --- include/libtorrent/buffer.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libtorrent/buffer.hpp b/include/libtorrent/buffer.hpp index 5dc2e558a..91ef58874 100644 --- a/include/libtorrent/buffer.hpp +++ b/include/libtorrent/buffer.hpp @@ -55,7 +55,7 @@ public: return begin[index]; } - int left() const { assert(end > begin); return end - begin; } + int left() const { assert(end >= begin); return end - begin; } char* begin; char* end; @@ -74,7 +74,7 @@ public: return begin[index]; } - int left() const { assert(end > begin); return end - begin; } + int left() const { assert(end >= begin); return end - begin; } char const* begin; char const* end;