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:
authorMilo Yip <miloyip@gmail.com>2014-06-25 12:06:00 +0400
committerMilo Yip <miloyip@gmail.com>2014-06-25 12:06:00 +0400
commite4ffa48a7563e892047c27f0a50fdeb6f71e6b8b (patch)
tree10a23f1332b47d4d163ee5005baf4771bfd46b85 /include/rapidjson/filewritestream.h
parent23056abad12c5bddf73e00b728d1d53c712627a5 (diff)
Remove some clang -Weverything warnings.
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_;
}
}