To: vim_dev@googlegroups.com Subject: Patch 8.2.0652 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.0652 (after 8.2.0650) Problem: Compiler warning for char conversion. Solution: Use unsigned char buffer. Files: src/userfunc.c *** ../vim-8.2.0651/src/userfunc.c 2020-04-27 22:47:45.186176148 +0200 --- src/userfunc.c 2020-04-27 23:15:14.253937848 +0200 *************** *** 1586,1598 **** hashitem_T *hi; ufunc_T *fp; long_u todo; ! char buf[30]; size_t len; buf[0] = K_SPECIAL; buf[1] = KS_EXTRA; buf[2] = (int)KE_SNR; ! sprintf(buf + 3, "%d_", sid); len = STRLEN(buf); todo = func_hashtab.ht_used; --- 1586,1598 ---- hashitem_T *hi; ufunc_T *fp; long_u todo; ! char_u buf[30]; size_t len; buf[0] = K_SPECIAL; buf[1] = KS_EXTRA; buf[2] = (int)KE_SNR; ! sprintf((char *)buf + 3, "%d_", sid); len = STRLEN(buf); todo = func_hashtab.ht_used; *** ../vim-8.2.0651/src/version.c 2020-04-27 22:51:30.133472305 +0200 --- src/version.c 2020-04-27 23:16:06.309818819 +0200 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 652, /**/ -- Far out in the uncharted backwaters of the unfashionable end of the Western Spiral arm of the Galaxy lies a small unregarded yellow sun. Orbiting this at a distance of roughly ninety-eight million miles is an utterly insignificant little blue-green planet whose ape-descended life forms are so amazingly primitive that they still think digital watches are a pretty neat idea ... -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy" /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///