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
path: root/test
diff options
context:
space:
mode:
authorMilo Yip <miloyip@gmail.com>2014-08-09 16:35:48 +0400
committerMilo Yip <miloyip@gmail.com>2014-08-09 16:35:48 +0400
commitf0955d327c5a21c1cf5b04b8127cb26f6b1c746a (patch)
tree9033d0f9a6105241f386b75737a140b5d3278221 /test
parent0e4f08ea8992dbdd9fe6de326563b89032a84474 (diff)
Fixed a bug in perftest (was asserted in debug)
Diffstat (limited to 'test')
-rw-r--r--test/perftest/rapidjsontest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/perftest/rapidjsontest.cpp b/test/perftest/rapidjsontest.cpp
index b2427175..95a407d5 100644
--- a/test/perftest/rapidjsontest.cpp
+++ b/test/perftest/rapidjsontest.cpp
@@ -87,7 +87,8 @@ TEST_F(RapidJson, SIMD_SUFFIX(ReaderParseIterative_DummyHandler)) {
TEST_F(RapidJson, SIMD_SUFFIX(ReaderParseIterativeInsitu_DummyHandler)) {
for (size_t i = 0; i < kTrialCount; i++) {
- StringStream s(json_);
+ memcpy(temp_, json_, length_ + 1);
+ InsituStringStream s(temp_);
BaseReaderHandler<> h;
Reader reader;
EXPECT_TRUE(reader.Parse<kParseIterativeFlag|kParseInsituFlag>(s, h));