Skip to content

Commit 5a5a1fe

Browse files
authored
Fix a comparison with a sign mismatch (#771)
Signed-off-by: Scott K Logan <logans@cottsay.net>
1 parent 890b724 commit 5a5a1fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rclcpp/src/rclcpp/node_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ NodeOptions::get_rcl_node_options() const
9898
}
9999
}
100100

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

0 commit comments

Comments
 (0)