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:
authorSergey Kosarevsky <sk@linderdaum.com>2016-03-02 05:07:53 +0300
committerSergey Kosarevsky <sk@linderdaum.com>2016-03-02 05:07:53 +0300
commitb5966c329097327e757c6b5714430124396c82a5 (patch)
treedd19536b8e9d6f86ab6d4ab16dcb466864158bc9 /include/rapidjson/reader.h
parentae785ffb5240e8cfbc87e131d999828e59845cc6 (diff)
Added missing static_cast
Diffstat (limited to 'include/rapidjson/reader.h')
-rw-r--r--include/rapidjson/reader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rapidjson/reader.h b/include/rapidjson/reader.h
index 056da949..87d8afd0 100644
--- a/include/rapidjson/reader.h
+++ b/include/rapidjson/reader.h
@@ -1299,7 +1299,7 @@ private:
}
else {
StackStream<typename TargetEncoding::Ch> stackStream(stack_);
- SizeType numCharsToCopy = s.Length();
+ SizeType numCharsToCopy = static_cast<SizeType>(s.Length());
while (numCharsToCopy--) {
Transcoder<SourceEncoding, TargetEncoding>::Transcode(is, stackStream);
}