Skip to content

Commit

Permalink
Simplify for loop in test_client.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Audrow Nash <audrow.nash@gmail.com>
  • Loading branch information
audrow committed Oct 29, 2020
1 parent a69521c commit 0287c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp_action/test/test_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class TestClient : public ::testing::Test
feedback_message.feedback.sequence.push_back(1);
feedback_publisher->publish(feedback_message);
client_executor.spin_once();
for (uint32_t i = 1; i < static_cast<uint32_t>(goal_request->goal.order); ++i) {
for (int32_t i = 1; i < goal_request->goal.order; ++i) {
feedback_message.feedback.sequence.push_back(
feedback_message.feedback.sequence[i] +
feedback_message.feedback.sequence[i - 1]);
Expand Down

0 comments on commit 0287c26

Please sign in to comment.