mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-09-02 02:48:00 +00:00
Fix Wshorten-64-to-32 warning
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user