Fix Wshorten-64-to-32 warning

This commit is contained in:
Carles Fernandez
2024-01-23 11:05:27 +01:00
parent a50a59fe1b
commit 84ce3ebc2f
+1 -1
View File
@@ -151,7 +151,7 @@ std::array<double, 4> Geohash::bounds(std::string geohash) const
for (char chr : geohash)
{
int idx = base32.find(chr);
auto idx = static_cast<int>(base32.find(chr));
if (idx == -1)
{
throw std::runtime_error("Invalid geohash");