diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2016-12-27 10:52:30 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2017-01-09 14:45:28 +0300 |
commit | 493e951fdbe6a78091632a32c6be6391a60cc408 (patch) | |
tree | 117880ec1cea18d7b1fa4f311f7a484b122c26a7 /drape/cpu_buffer.cpp | |
parent | 8b5398dbd1904d03542fa5560d2288f0f9efc5fc (diff) |
Fixed warnings in drape
Diffstat (limited to 'drape/cpu_buffer.cpp')
-rw-r--r-- | drape/cpu_buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drape/cpu_buffer.cpp b/drape/cpu_buffer.cpp index 7aa72ef528..c5f63765d0 100644 --- a/drape/cpu_buffer.cpp +++ b/drape/cpu_buffer.cpp @@ -45,7 +45,7 @@ void CPUBuffer::Seek(uint32_t elementNumber) uint32_t CPUBuffer::GetCurrentElementNumber() const { - uint32_t pointerDiff = GetCursor() - Data(); + uint32_t pointerDiff = static_cast<uint32_t>(GetCursor() - Data()); ASSERT(pointerDiff % GetElementSize() == 0, ()); return pointerDiff / GetElementSize(); } |