Skip to content

Commit

Permalink
Fix a comparison with a sign mismatch (#804)
Browse files Browse the repository at this point in the history
This is a backport of #771 for Dashing.

Signed-off-by: Scott K Logan <logans@cottsay.net>
  • Loading branch information
cottsay committed Jul 31, 2019
1 parent b86127d commit d2f052e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/src/rclcpp/node_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ NodeOptions::get_rcl_node_options() const
}
}

if (this->arguments_.size() > std::numeric_limits<int>::max()) {
if (this->arguments_.size() > static_cast<size_t>(std::numeric_limits<int>::max())) {
throw_from_rcl_error(RCL_RET_INVALID_ARGUMENT, "Too many args");
}

Expand Down

0 comments on commit d2f052e

Please sign in to comment.