Skip to content

Commit

Permalink
Fix a comparison with a sign mismatch (#771)
Browse files Browse the repository at this point in the history
Signed-off-by: Scott K Logan <logans@cottsay.net>
  • Loading branch information
cottsay committed Jun 26, 2019
1 parent 890b724 commit 5a5a1fe
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 5a5a1fe

Please sign in to comment.