Skip to content

Commit

Permalink
[ControllerInterface] Avoid warning about conversion from int64_t t…
Browse files Browse the repository at this point in the history
…o `unsigned int` (backport #1173) (#1631)
  • Loading branch information
mergify[bot] authored Jul 21, 2024
1 parent 37cacad commit 4c0a160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller_interface/src/controller_interface_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const rclcpp_lifecycle::State & ControllerInterfaceBase::configure()
// Other solution is to add check into the LifecycleNode if a transition is valid to trigger
if (get_state().id() == lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED)
{
update_rate_ = get_node()->get_parameter("update_rate").as_int();
update_rate_ = static_cast<unsigned int>(get_node()->get_parameter("update_rate").as_int());
}

return get_node()->configure();
Expand Down

0 comments on commit 4c0a160

Please sign in to comment.