diff options
author | Maksim Andrianov <maksimandrianov1@gmail.com> | 2019-05-24 18:23:54 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2019-05-28 17:12:27 +0300 |
commit | e2d0d658a527eaa3a9b267d55e6b817f5ef5b518 (patch) | |
tree | 5b6bd8e2be77782371c9af22af38aa0a86bc057e /geocoder | |
parent | 142e4ada6d750ed17301e84311fcbcfc7ac97e9b (diff) |
Fixed warnings for gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
Diffstat (limited to 'geocoder')
-rw-r--r-- | geocoder/geocoder_cli/geocoder_cli.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/geocoder/geocoder_cli/geocoder_cli.cpp b/geocoder/geocoder_cli/geocoder_cli.cpp index e46475b1a1..f3b78d569f 100644 --- a/geocoder/geocoder_cli/geocoder_cli.cpp +++ b/geocoder/geocoder_cli/geocoder_cli.cpp @@ -26,7 +26,7 @@ void PrintResults(Hierarchy const & hierarchy, vector<Result> const & results) cout << "Top results:" << endl; for (size_t i = 0; i < results.size(); ++i) { - if (FLAGS_top >= 0 && i >= FLAGS_top) + if (FLAGS_top >= 0 && static_cast<int32_t>(i) >= FLAGS_top) break; cout << " " << DebugPrint(results[i]); if (auto const && e = hierarchy.GetEntryForOsmId(results[i].m_osmId)) |