From 5a5a1fe530058e1dd521717df8408a7cd6d1a4f2 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Wed, 26 Jun 2019 10:26:07 -0700 Subject: [PATCH] Fix a comparison with a sign mismatch (#771) 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 441bb80..f13c411 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"); }