diff options
author | Sergey Yershov <syershov@maps.me> | 2017-01-09 19:54:06 +0300 |
---|---|---|
committer | Sergey Yershov <syershov@maps.me> | 2017-01-10 18:02:24 +0300 |
commit | 5fc11e9bea22f57793758c4909177404d39369cc (patch) | |
tree | 1f7a79e2499b0fc9bb37512ae0ca01a68e75bd99 /coding | |
parent | fc09a7d305e2f8bc536ff5e0a76fa4f7d962a978 (diff) |
Fix compile warningsfix-warning
Diffstat (limited to 'coding')
-rw-r--r-- | coding/writer.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coding/writer.hpp b/coding/writer.hpp index b68c9e3891..9715388942 100644 --- a/coding/writer.hpp +++ b/coding/writer.hpp @@ -58,7 +58,7 @@ public: memcpy(&m_Data[m_Pos], p, min(size, static_cast<size_t>(freeSize))); - if (size > freeSize) + if (size > static_cast<size_t>(freeSize)) { uint8_t const * it = reinterpret_cast<uint8_t const *>(p); m_Data.insert(m_Data.end(), it + freeSize, it + size); @@ -120,7 +120,7 @@ public: inline uint64_t Size() const { return m_maxPos; } private: - inline uint64_t GetOffset() const { return m_writer.Pos() - m_pos; } + inline int64_t GetOffset() const { return m_writer.Pos() - m_pos; } private: WriterT & m_writer; |