More granular assertion in Arena.h

This commit is contained in:
Alexander Kuzmenkov 2020-04-18 00:36:07 +03:00 committed by GitHub
parent 1927212f67
commit 6793cd7cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,7 +220,8 @@ public:
// This method only works for extending the last allocation. For lack of
// original size, check a weaker condition: that 'begin' is at least in
// the current Chunk.
assert(range_start >= head->begin && range_start < head->end);
assert(range_start >= head->begin);
assert(range_start < head->end);
if (head->pos + additional_bytes <= head->end)
{