0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0652: compiler warning for char conversion

Problem:    Compiler warning for char conversion.
Solution:   Use unsigned char buffer.
This commit is contained in:
Bram Moolenaar
2020-04-27 23:16:41 +02:00
parent 57700ee4ac
commit 909ed7e902
2 changed files with 4 additions and 2 deletions

View File

@@ -1586,13 +1586,13 @@ delete_script_functions(int sid)
hashitem_T *hi; hashitem_T *hi;
ufunc_T *fp; ufunc_T *fp;
long_u todo; long_u todo;
char buf[30]; char_u buf[30];
size_t len; size_t len;
buf[0] = K_SPECIAL; buf[0] = K_SPECIAL;
buf[1] = KS_EXTRA; buf[1] = KS_EXTRA;
buf[2] = (int)KE_SNR; buf[2] = (int)KE_SNR;
sprintf(buf + 3, "%d_", sid); sprintf((char *)buf + 3, "%d_", sid);
len = STRLEN(buf); len = STRLEN(buf);
todo = func_hashtab.ht_used; todo = func_hashtab.ht_used;

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
652,
/**/ /**/
651, 651,
/**/ /**/