changeset 20193:cf13b26be258 v8.2.0652

patch 8.2.0652: compiler warning for char conversion Commit: https://github.com/vim/vim/commit/909ed7e902d97054262fb55b28f5e855428ab7fe Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 27 23:16:41 2020 +0200 patch 8.2.0652: compiler warning for char conversion Problem: Compiler warning for char conversion. Solution: Use unsigned char buffer.
author Bram Moolenaar <Bram@vim.org>
date Mon, 27 Apr 2020 23:30:04 +0200
parents dd8b54d691df
children 20bd9fa66206
files src/userfunc.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -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;
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    652,
+/**/
     651,
 /**/
     650,