Skip to content

Commit

Permalink
mission: don't cast implicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Jan 24, 2019
1 parent 4b3c0f5 commit aaa4a7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/mission/mission_item_impl.cpp
Expand Up @@ -108,12 +108,12 @@ float MissionItemImpl::get_mavlink_param4() const

int32_t MissionItemImpl::get_mavlink_x() const
{
return std::round(_latitude_deg * 1e7);
return int32_t(std::round(_latitude_deg * 1e7));
}

int32_t MissionItemImpl::get_mavlink_y() const
{
return std::round(_longitude_deg * 1e7);
return int32_t(std::round(_longitude_deg * 1e7));
}

float MissionItemImpl::get_mavlink_z() const
Expand Down

0 comments on commit aaa4a7e

Please sign in to comment.