0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.0504: still a build failure

Problem:    still a Build failure.
Solution:   Add another missing changes.  Avoid compiler warning.
This commit is contained in:
Bram Moolenaar
2022-09-19 16:08:04 +01:00
parent 65449bd1ee
commit c9e4a6f191
3 changed files with 9 additions and 5 deletions

View File

@@ -5955,13 +5955,13 @@ printable_loopvarinfo(loopvarinfo_T *lvi)
if (ga_grow(&ga, 50) == FAIL)
break;
if (lvi->lvi_loop[depth].var_idx == 0)
STRCPY(ga.ga_data + ga.ga_len, " -");
STRCPY((char *)ga.ga_data + ga.ga_len, " -");
else
vim_snprintf(ga.ga_data + ga.ga_len, 50, " $%d-$%d",
vim_snprintf((char *)ga.ga_data + ga.ga_len, 50, " $%d-$%d",
lvi->lvi_loop[depth].var_idx,
lvi->lvi_loop[depth].var_idx
+ lvi->lvi_loop[depth].var_count - 1);
ga.ga_len = STRLEN(ga.ga_data);
ga.ga_len = (int)STRLEN(ga.ga_data);
}
return ga.ga_data;
}