From 62d246e3fe5d80badee05b928b4248e1b5c714c3 Mon Sep 17 00:00:00 2001 From: Karina Ranadive Date: Mon, 7 Aug 2023 14:56:04 -0400 Subject: [PATCH] Changed variable to size_t for consistency --- templates/ConfigType.h.template | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/ConfigType.h.template b/templates/ConfigType.h.template index 89b4da68..f1e821b4 100644 --- a/templates/ConfigType.h.template +++ b/templates/ConfigType.h.template @@ -253,16 +253,16 @@ ${doline} ${linenum} "${filename}" { ROS_ERROR("${configname}Config::__fromMessage__ called with an unexpected parameter."); ROS_ERROR("Booleans:"); - for (unsigned int i = 0; i < msg.bools.size(); i++) + for (size_t i = 0; i < msg.bools.size(); i++) ROS_ERROR(" %s", msg.bools[i].name.c_str()); ROS_ERROR("Integers:"); - for (unsigned int i = 0; i < msg.ints.size(); i++) + for (size_t i = 0; i < msg.ints.size(); i++) ROS_ERROR(" %s", msg.ints[i].name.c_str()); ROS_ERROR("Doubles:"); - for (unsigned int i = 0; i < msg.doubles.size(); i++) + for (size_t i = 0; i < msg.doubles.size(); i++) ROS_ERROR(" %s", msg.doubles[i].name.c_str()); ROS_ERROR("Strings:"); - for (unsigned int i = 0; i < msg.strs.size(); i++) + for (size_t i = 0; i < msg.strs.size(); i++) ROS_ERROR(" %s", msg.strs[i].name.c_str()); // @todo Check that there are no duplicates. Make this error more // explicit.