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:
Diffstat (limited to 'include/rapidjson/filewritestream.h')
-rw-r--r--include/rapidjson/filewritestream.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/rapidjson/filewritestream.h b/include/rapidjson/filewritestream.h
index 3d15ea87..9f0ce659 100644
--- a/include/rapidjson/filewritestream.h
+++ b/include/rapidjson/filewritestream.h
@@ -8,7 +8,7 @@ namespace rapidjson {
//! Wrapper of C file stream for input using fread().
/*!
- \implements Stream
+ \note implements Stream concept
*/
class FileWriteStream {
public:
@@ -26,13 +26,13 @@ public:
}
void PutN(char c, size_t n) {
- size_t avail = bufferEnd_ - current_;
+ size_t avail = static_cast<size_t>(bufferEnd_ - current_);
while (n > avail) {
memset(current_, c, avail);
current_ += avail;
Flush();
n -= avail;
- avail = bufferEnd_ - current_;
+ avail = static_cast<size_t>(bufferEnd_ - current_);
}
if (n > 0) {
@@ -43,7 +43,7 @@ public:
void Flush() {
if (current_ != buffer_) {
- fwrite(buffer_, 1, current_ - buffer_, fp_);
+ fwrite(buffer_, 1, static_cast<size_t>(current_ - buffer_), fp_);
current_ = buffer_;
}
}