diff options
author | Patrick Cheng <patrickyccheng@gmail.com> | 2016-09-30 21:12:23 +0300 |
---|---|---|
committer | Patrick Cheng <patrickyccheng@gmail.com> | 2016-09-30 21:12:23 +0300 |
commit | 91a803d46394a668fd5cb51bd1b4dbea9b4b2fb0 (patch) | |
tree | aad9d268726e02b4facfa184af90d23966e0f74d /include/rapidjson/internal | |
parent | 9d8df28c1dd92be8480fae8026fed0aa2c0d8cdd (diff) |
Reserve() is sometimes called when stackTop_ is null. The assert is invalid.
Diffstat (limited to 'include/rapidjson/internal')
-rw-r--r-- | include/rapidjson/internal/stack.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/rapidjson/internal/stack.h b/include/rapidjson/internal/stack.h index 54ac77a8..26b716d2 100644 --- a/include/rapidjson/internal/stack.h +++ b/include/rapidjson/internal/stack.h @@ -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); |