From aa0e17a33050a63ad58a50ac61d9d3975bc08ee8 Mon Sep 17 00:00:00 2001 From: Kristof Szabados <Kristof.Szabados@ericsson.com> Date: Sat, 11 Aug 2018 16:00:12 +0200 Subject: [PATCH] some more size_t Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com> --- compiler2/xpather.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler2/xpather.cc b/compiler2/xpather.cc index 62a4b8900..972a3c1bb 100644 --- a/compiler2/xpather.cc +++ b/compiler2/xpather.cc @@ -3130,7 +3130,7 @@ static tpd_result process_tpd_internal(const char **p_tpd_name, char *tpdName, c // (argc - optind) is the number of non-option arguments (assumed to be files) // given on the command line. - int new_argc = local_argc - local_optind + files.size() + base_files.size(); + size_t new_argc = local_argc - local_optind + files.size() + base_files.size(); char ** new_argv = (char**)Malloc(sizeof(char*) * new_argc); size_t n = 0; @@ -3259,7 +3259,7 @@ static tpd_result process_tpd_internal(const char **p_tpd_name, char *tpdName, c *p_argc = new_argc; *p_optind = 0; } else { - for (int i = 0; i < new_argc; ++i) { + for (size_t i = 0; i < new_argc; ++i) { Free(new_argv[i]); } Free(new_argv); -- GitLab