Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtyom Polkovnikov <artyom.polkovnikov@gmail.com>2014-11-18 16:54:11 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:32:43 +0300
commit64a8008f44f867db466980d4f5d03581b07926dd (patch)
treeb8441cb27d010f6a8fa2239ca3541ebf0eeaaa4f /coding/writer.hpp
parentdee08407b40f16b231df4edf368b179e57d4ca6d (diff)
[coding] [reader] [writer] Remove check for size == 0. Instead use pointers addition.
Diffstat (limited to 'coding/writer.hpp')
-rw-r--r--coding/writer.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/coding/writer.hpp b/coding/writer.hpp
index c8b51265f0..debdb41708 100644
--- a/coding/writer.hpp
+++ b/coding/writer.hpp
@@ -50,7 +50,7 @@ public:
{
if (m_Pos + size > m_Data.size())
m_Data.resize(m_Pos + size);
- memcpy(&m_Data[m_Pos], p, size);
+ memcpy(((uint8_t*)m_Data.data()) + m_Pos, p, size);
m_Pos += size;
}