diff options
author | Milo Yip <miloyip@gmail.com> | 2014-06-25 12:07:44 +0400 |
---|---|---|
committer | Milo Yip <miloyip@gmail.com> | 2014-06-25 12:07:44 +0400 |
commit | f930d9e2e5976d75f63f634981db2102c31c04b3 (patch) | |
tree | 7d12df4a6c0ca088da7c78fb8136a2f31b7f7f39 /include/rapidjson/filereadstream.h | |
parent | e4ffa48a7563e892047c27f0a50fdeb6f71e6b8b (diff) |
Revert "Remove some clang -Weverything warnings."
This reverts commit e4ffa48a7563e892047c27f0a50fdeb6f71e6b8b.
Diffstat (limited to 'include/rapidjson/filereadstream.h')
-rw-r--r-- | include/rapidjson/filereadstream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rapidjson/filereadstream.h b/include/rapidjson/filereadstream.h index 4d42d381..2d208416 100644 --- a/include/rapidjson/filereadstream.h +++ b/include/rapidjson/filereadstream.h @@ -8,7 +8,7 @@ namespace rapidjson { //! File byte stream for input using fread().
/*!
- \note implements Stream concept
+ \implements Stream
*/
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_ + static_cast<size_t>(current_ - buffer_); }
+ size_t Tell() const { return count_ + (current_ - buffer_); }
// Not implemented
void Put(Ch) { RAPIDJSON_ASSERT(false); }
|