Commit 91a803d4 authored by Patrick Cheng's avatar Patrick Cheng

Reserve() is sometimes called when stackTop_ is null. The assert is invalid.

parent 9d8df28c
......@@ -113,7 +113,6 @@ public:
// Expansion is run very infrequently, so it is moved to another (probably non-inline) function.
template<typename T>
RAPIDJSON_FORCEINLINE void Reserve(size_t count = 1) {
RAPIDJSON_ASSERT(stackTop_);
// Expand the stack if needed
if (RAPIDJSON_UNLIKELY(stackTop_ + sizeof(T) * count > stackEnd_))
Expand<T>(count);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment