diff options
author | Sergey Yershov <yershov@corp.mail.ru> | 2015-03-17 16:04:42 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:39:56 +0300 |
commit | 3848db2389318c41b7c29a74cf9e5f2ba7e331dc (patch) | |
tree | d2716c5a3d833c768dd4f94b22944c1fee18f822 /coding/dd_vector.hpp | |
parent | a97b51a6aaa759dc584f6f133d7aeee739aad62c (diff) |
fixed warning in [indexer]
Diffstat (limited to 'coding/dd_vector.hpp')
-rw-r--r-- | coding/dd_vector.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coding/dd_vector.hpp b/coding/dd_vector.hpp index 255822a984..7b0e2df879 100644 --- a/coding/dd_vector.hpp +++ b/coding/dd_vector.hpp @@ -15,7 +15,7 @@ template < typename T, class TReader, typename TSize = uint32_t, - typename TDifference = typename make_signed<TSize>::type + typename TDifference = ptrdiff_t > class DDVector { public: @@ -170,7 +170,7 @@ private: if ((sz % sizeof(T)) != 0) MYTHROW(OpenException, (sz, sizeof(T))); - m_Size = sz / sizeof(T); + m_Size = static_cast<size_type>(sz / sizeof(T)); } // TODO: Refactor me to use Reader by pointer. |