diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-16 20:38:52 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-16 20:38:52 +0200 |
commit | 624c7aa69135777c3705f1ad4feec98af47abcfd (patch) | |
tree | 9cff4fb229bd643925866cdbf6f1d75b03cbec0e /src/misc1.c | |
parent | 349b2fb048f01dde1010f47e716e6803a87bbee5 (diff) | |
download | vim-624c7aa69135777c3705f1ad4feec98af47abcfd.zip |
Avoid compiler warnings for size_t to int conversions.
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/misc1.c b/src/misc1.c index 493b532bd..4b0ff6df3 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -9273,8 +9273,8 @@ is_unique(maybe_unique, gap, i) if (j == i) continue; - candidate_len = STRLEN(maybe_unique); - other_path_len = STRLEN(other_paths[j]); + candidate_len = (int)STRLEN(maybe_unique); + other_path_len = (int)STRLEN(other_paths[j]); if (other_path_len < candidate_len) continue; /* it's different */ @@ -9327,7 +9327,7 @@ uniquefy_paths(gap, pattern) * regex matches anywhere in the path. FIXME: is this valid for all * possible pattern? */ - len = STRLEN(pattern); + len = (int)STRLEN(pattern); file_pattern = alloc(len + 2); file_pattern[0] = '*'; file_pattern[1] = '\0'; @@ -9347,7 +9347,7 @@ uniquefy_paths(gap, pattern) for (i = 0; i < gap->ga_len; i++) { path = fnames[i]; - len = STRLEN(path); + len = (int)STRLEN(path); /* we start at the end of the path */ pathsep_p = path + len - 1; |