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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202004272118.03RLI8OT007591%40masaka.moolenaar.net.

Raspunde prin e-mail lui