From 84ce3ebc2ff4c16c4424ed77b59397d769074161 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Tue, 23 Jan 2024 11:05:27 +0100 Subject: [PATCH] Fix Wshorten-64-to-32 warning --- src/algorithms/PVT/libs/geohash.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/PVT/libs/geohash.cc b/src/algorithms/PVT/libs/geohash.cc index 33f14c705..ecc1f6f3a 100644 --- a/src/algorithms/PVT/libs/geohash.cc +++ b/src/algorithms/PVT/libs/geohash.cc @@ -151,7 +151,7 @@ std::array Geohash::bounds(std::string geohash) const for (char chr : geohash) { - int idx = base32.find(chr); + auto idx = static_cast(base32.find(chr)); if (idx == -1) { throw std::runtime_error("Invalid geohash");