Commit f0955d32 authored by Milo Yip's avatar Milo Yip

Fixed a bug in perftest (was asserted in debug)

parent 0e4f08ea
......@@ -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));
......
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