Fix an off by one error.

[SVN r42588]
This commit is contained in:
Daniel James
2008-01-07 21:07:43 +00:00
parent 7d128006e1
commit 848b253877

View File

@@ -302,7 +302,7 @@ namespace test
BOOST_ERROR("Deallocating unknown pointer.");
} else {
BOOST_TEST(pos->first.start == ptr);
BOOST_TEST(pos->first.end == (char*) ptr + n * size - 1);
BOOST_TEST(pos->first.end == (char*) ptr + n * size);
BOOST_TEST(pos->second.tag_ == tag);
BOOST_TEST(pos->second.constructed_ == 0);
allocated_memory.erase(pos);