Review fixes.

This commit is contained in:
Maxim Pimenov 2015-04-10 22:45:08 +03:00 committed by Alex Zolotarev
parent f226013467
commit e068f63b4e
2 changed files with 8 additions and 4 deletions

View file

@ -10,7 +10,9 @@ namespace routing
{
double const kMaxSpeedMPS = 5000.0 / 3600;
double const kEpsilon = 1e-6;
int const kCancelledPollPeriod = 100;
// Power of two to make the division faster.
uint32_t const kCancelledPollPeriod = 128;
namespace
{
@ -112,7 +114,7 @@ IRouter::ResultCode AStarRouter::CalculateRouteM2M(vector<RoadPos> const & start
queue.push(Vertex(rp, 0.0));
}
int steps = 0;
uint32_t steps = 0;
while (!queue.empty())
{

View file

@ -10,7 +10,9 @@
namespace routing
{
int const kCancelledPollPeriod = 100;
// Power of two to make the division faster.
uint32_t const kCancelledPollPeriod = 128;
namespace
{
@ -78,7 +80,7 @@ IRouter::ResultCode DijkstraRouter::CalculateRouteM2M(vector<RoadPos> const & st
for (auto const & p : dist)
queue.push(Vertex(p.first, 0.0 /* distance */));
int steps = 0;
uint32_t steps = 0;
while (!queue.empty())
{