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:
@@ -1586,13 +1586,13 @@ delete_script_functions(int sid)
|
||||
hashitem_T *hi;
|
||||
ufunc_T *fp;
|
||||
long_u todo;
|
||||
char buf[30];
|
||||
char_u buf[30];
|
||||
size_t len;
|
||||
|
||||
buf[0] = K_SPECIAL;
|
||||
buf[1] = KS_EXTRA;
|
||||
buf[2] = (int)KE_SNR;
|
||||
sprintf(buf + 3, "%d_", sid);
|
||||
sprintf((char *)buf + 3, "%d_", sid);
|
||||
len = STRLEN(buf);
|
||||
|
||||
todo = func_hashtab.ht_used;
|
||||
|
@@ -746,6 +746,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
652,
|
||||
/**/
|
||||
651,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user