forked from organicmaps/organicmaps
Fixed uint32_t serialization bug.
This commit is contained in:
parent
25aaa05cef
commit
5fc4681e54
1 changed files with 3 additions and 2 deletions
|
@ -57,7 +57,9 @@ size_t CrossRoutingContextReader::GetIndexInAdjMatrix(IngoingEdgeIteratorT ingoi
|
|||
|
||||
void CrossRoutingContextReader::Load(Reader const & r)
|
||||
{
|
||||
size_t size, pos = 0;
|
||||
size_t pos = 0;
|
||||
|
||||
uint32_t size;
|
||||
r.Read(pos, &size, sizeof(size));
|
||||
pos += sizeof(size);
|
||||
m_ingoingNodes.resize(size);
|
||||
|
@ -81,7 +83,6 @@ void CrossRoutingContextReader::Load(Reader const & r)
|
|||
pos += sizeof(strsize);
|
||||
for (uint32_t i = 0; i < strsize; ++i)
|
||||
{
|
||||
vector<char> tmpString;
|
||||
r.Read(pos, &size, sizeof(size));
|
||||
pos += sizeof(size);
|
||||
vector<char> buffer(size);
|
||||
|
|
Loading…
Add table
Reference in a new issue