Skip to content

Commit

Permalink
Satisfy clang
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Dec 4, 2024
1 parent 43d4619 commit 227646e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ForceTorqueSensor : public SemanticComponentInterface<geometry_msgs::msg::
const std::string & interface_torque_y, const std::string & interface_torque_z)
: SemanticComponentInterface("", 6)
{
auto check_and_add_interface = [this](const std::string & interface_name, const int index)
auto check_and_add_interface = [this](const std::string & interface_name, const size_t index)
{
if (!interface_name.empty())
{
Expand Down Expand Up @@ -120,7 +120,7 @@ class ForceTorqueSensor : public SemanticComponentInterface<geometry_msgs::msg::
// find out how many force interfaces are being used
// torque interfaces will be found from the next index onward
auto torque_interface_counter =
std::count(existing_axes_.begin(), existing_axes_.begin() + 3, true);
static_cast<size_t>(std::count(existing_axes_.begin(), existing_axes_.begin() + 3, true));

for (size_t i = 3; i < 6; ++i)
{
Expand Down

0 comments on commit 227646e

Please sign in to comment.