From 3f47e95d5f3019f7e2ce77d8f0035ab0f6e9664f Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Mon, 24 Jun 2019 16:57:50 -0700 Subject: [PATCH] Fix a comparison with a sign mismatch Signed-off-by: Scott K Logan --- rclcpp/src/rclcpp/node_options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclcpp/src/rclcpp/node_options.cpp b/rclcpp/src/rclcpp/node_options.cpp index 441bb80657..f13c411089 100644 --- a/rclcpp/src/rclcpp/node_options.cpp +++ b/rclcpp/src/rclcpp/node_options.cpp @@ -98,7 +98,7 @@ NodeOptions::get_rcl_node_options() const } } - if (this->arguments_.size() > std::numeric_limits::max()) { + if (this->arguments_.size() > static_cast(std::numeric_limits::max())) { throw_from_rcl_error(RCL_RET_INVALID_ARGUMENT, "Too many args"); }