mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-05 23:10:34 +00:00
Fix Wshorten-64-to-32 warning
This commit is contained in:
parent
a50a59fe1b
commit
84ce3ebc2f
@ -151,7 +151,7 @@ std::array<double, 4> Geohash::bounds(std::string geohash) const
|
|||||||
|
|
||||||
for (char chr : geohash)
|
for (char chr : geohash)
|
||||||
{
|
{
|
||||||
int idx = base32.find(chr);
|
auto idx = static_cast<int>(base32.find(chr));
|
||||||
if (idx == -1)
|
if (idx == -1)
|
||||||
{
|
{
|
||||||
throw std::runtime_error("Invalid geohash");
|
throw std::runtime_error("Invalid geohash");
|
||||||
|
Loading…
Reference in New Issue
Block a user