Skip to content

Commit

Permalink
follow_me: fix casting for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Jan 24, 2019
1 parent aaa4a7e commit aa5952a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/follow_me/follow_me_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ void FollowMeImpl::send_target_location()
// LogDebug() << debug_str << "Lat: " << _target_location.latitude_deg << " Lon: " <<
// _target_location.longitude_deg <<
// " Alt: " << _target_location.absolute_altitude_m;
const int32_t lat_int = std::round(_target_location.latitude_deg * 1e7);
const int32_t lon_int = std::round(_target_location.longitude_deg * 1e7);
const int32_t lat_int = int32_t(std::round(_target_location.latitude_deg * 1e7));
const int32_t lon_int = int32_t(std::round(_target_location.longitude_deg * 1e7));
const float alt = static_cast<float>(_target_location.absolute_altitude_m);
_mutex.unlock();

Expand Down

0 comments on commit aa5952a

Please sign in to comment.