We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 67fac85 + 51ca982 commit 595ed48Copy full SHA for 595ed48
include/rapidjson/writer.h
@@ -460,8 +460,7 @@ class Writer {
460
PutReserve(*os_, length);
461
GenericStringStream<SourceEncoding> is(json);
462
while (RAPIDJSON_LIKELY(is.Tell() < length)) {
463
- const Ch c = is.Peek();
464
- RAPIDJSON_ASSERT(c != '\0');
+ RAPIDJSON_ASSERT(is.Peek() != '\0');
465
if (RAPIDJSON_UNLIKELY(!(writeFlags & kWriteValidateEncodingFlag ?
466
Transcoder<SourceEncoding, TargetEncoding>::Validate(is, *os_) :
467
Transcoder<SourceEncoding, TargetEncoding>::TranscodeUnsafe(is, *os_))))
0 commit comments