Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Cheng <patrickyccheng@gmail.com>2016-09-30 21:12:23 +0300
committerPatrick Cheng <patrickyccheng@gmail.com>2016-09-30 21:12:23 +0300
commit91a803d46394a668fd5cb51bd1b4dbea9b4b2fb0 (patch)
treeaad9d268726e02b4facfa184af90d23966e0f74d /include/rapidjson/internal
parent9d8df28c1dd92be8480fae8026fed0aa2c0d8cdd (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.h1
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);