Commit a077002e authored by Volker Krause's avatar Volker Krause

Fix build with the old Android GCC toolchain

parent 8e4df85e
......@@ -31,16 +31,16 @@ struct WeatherTile
inline constexpr WeatherTile() = default;
inline constexpr WeatherTile(float latitude, float longitude)
: x(uint16_t(std::round(latitude * WeatherTile::Size)))
, y(uint16_t(std::round(longitude * WeatherTile::Size)))
: x(uint16_t(::round(latitude * WeatherTile::Size)))
, y(uint16_t(::round(longitude * WeatherTile::Size)))
{}
inline constexpr bool operator<(WeatherTile other)
inline bool operator<(WeatherTile other) const
{
return std::tie(x, y) < std::tie(other.x, other.y);
}
inline constexpr bool operator==(WeatherTile other)
inline constexpr bool operator==(WeatherTile other) const
{
return x == other.x && y == other.y;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment