]> granicus.if.org Git - vim/commitdiff
patch 8.2.0652: compiler warning for char conversion v8.2.0652
authorBram Moolenaar <Bram@vim.org>
Mon, 27 Apr 2020 21:16:41 +0000 (23:16 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 27 Apr 2020 21:16:41 +0000 (23:16 +0200)
Problem:    Compiler warning for char conversion.
Solution:   Use unsigned char buffer.

src/userfunc.c
src/version.c

index 993697e46d6231967be97251f54136b34f470aab..86dea795cfae92c3d1045877f161501019ef5d72 100644 (file)
@@ -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;
index 6542b37aff94ab873817bcb560e12f1f2e20ff3b..f9951e93665827683d75d437d7e305050dac5be0 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    652,
 /**/
     651,
 /**/