From 3dc88866464729d346bd830fa6de4081e040e2c3 Mon Sep 17 00:00:00 2001 From: Kristof Szabados <Kristof.Szabados@ericsson.com> Date: Sat, 11 Aug 2018 15:57:09 +0200 Subject: [PATCH] size_t is more precise. 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 6c09bc230..62a4b8900 100644 --- a/compiler2/xpather.cc +++ b/compiler2/xpather.cc @@ -3133,13 +3133,13 @@ static tpd_result process_tpd_internal(const char **p_tpd_name, char *tpdName, c int new_argc = local_argc - local_optind + files.size() + base_files.size(); char ** new_argv = (char**)Malloc(sizeof(char*) * new_argc); - int n = 0; + size_t n = 0; // First, copy the filenames gathered from the TPD // // We symlink the files into the working directory // and pass only the filename to the makefile generator - for (int nf = files.size(); n < nf; ++n) { + for (size_t nf = files.size(); n < nf; ++n) { const char *fn = files.get_nth_elem(n); // relativeURI to the TPD location autostring dir_n (get_dir_from_path (fn)); autostring file_n(get_file_from_path(fn)); -- GitLab