Fixed warn: suggest parentheses around comparison in operand of ‘==’

This commit is contained in:
Maksim Andrianov 2018-06-22 14:46:06 +03:00
parent e21efb9d60
commit 1143dd2b8a

View file

@ -309,8 +309,8 @@ UNIT_TEST(FindPathManhattan)
? finish.m_projections[0].m_segment.GetFeatureId()
: finish.m_projections[0].m_segment.GetFeatureId() - kCitySize;
if (start.m_projections[0].m_segment.GetFeatureId() < kCitySize ==
finish.m_projections[0].m_segment.GetFeatureId() < kCitySize)
if ((start.m_projections[0].m_segment.GetFeatureId() < kCitySize) ==
(finish.m_projections[0].m_segment.GetFeatureId() < kCitySize))
{
uint32_t segDelta = AbsDelta(start.m_projections[0].m_segment.GetSegmentIdx(),
finish.m_projections[0].m_segment.GetSegmentIdx());