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/filereadstream.h')
-rw-r--r--include/rapidjson/filereadstream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rapidjson/filereadstream.h b/include/rapidjson/filereadstream.h
index 2d208416..4d42d381 100644
--- a/include/rapidjson/filereadstream.h
+++ b/include/rapidjson/filereadstream.h
@@ -8,7 +8,7 @@ namespace rapidjson {
//! File byte stream for input using fread().
/*!
- \implements Stream
+ \note implements Stream concept
*/
class FileReadStream {
public:
@@ -28,7 +28,7 @@ public:
Ch Peek() const { return *current_; }
Ch Take() { Ch c = *current_; Read(); return c; }
- size_t Tell() const { return count_ + (current_ - buffer_); }
+ size_t Tell() const { return count_ + static_cast<size_t>(current_ - buffer_); }
// Not implemented
void Put(Ch) { RAPIDJSON_ASSERT(false); }