From 1143dd2b8abd07fd76e0c7a58df1acd1fda9ba1a Mon Sep 17 00:00:00 2001 From: Maksim Andrianov Date: Fri, 22 Jun 2018 14:46:06 +0300 Subject: [PATCH] =?UTF-8?q?Fixed=20warn:=20suggest=20parentheses=20around?= =?UTF-8?q?=20comparison=20in=20operand=20of=20=E2=80=98=3D=3D=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routing/routing_tests/index_graph_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routing/routing_tests/index_graph_test.cpp b/routing/routing_tests/index_graph_test.cpp index b4d6dbc045..3f42c487e2 100644 --- a/routing/routing_tests/index_graph_test.cpp +++ b/routing/routing_tests/index_graph_test.cpp @@ -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());