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
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
1 changed files with 1 additions and 1 deletions

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");