Review fixes.

This commit is contained in:
Vladimir Byko-Ianko 2018-09-11 18:58:43 +03:00 committed by mpimenov
parent 5d4b9079e6
commit c9f25d65d3
2 changed files with 3 additions and 5 deletions

View file

@ -83,7 +83,7 @@ void SerializeCityRoads(string const & dataPath, vector<uint64_t> && cityRoadFea
CHECK(adjacent_find(cityRoadFeatureIds.cbegin(), cityRoadFeatureIds.cend()) ==
cityRoadFeatureIds.cend(),
("City road feature ids should be unique."));
succinct::elias_fano::elias_fano_builder builder(cityRoadFeatureIds.back(),
succinct::elias_fano::elias_fano_builder builder(cityRoadFeatureIds.back() + 1,
cityRoadFeatureIds.size());
for (auto fid : cityRoadFeatureIds)
builder.push_back(fid);

View file

@ -46,9 +46,7 @@ bool CityRoadsLoader::IsCityRoad(uint32_t fid) const
{
if (fid < m_cityRoads.size())
return m_cityRoads[fid];
else if (fid == m_cityRoads.size())
return true;
else
return false;
return false;
}
} // namespace routing