]> granicus.if.org Git - vim/commitdiff
patch 8.2.1906: warning for signed/unsigned v8.2.1906
authorBram Moolenaar <Bram@vim.org>
Mon, 26 Oct 2020 17:46:53 +0000 (18:46 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 26 Oct 2020 17:46:53 +0000 (18:46 +0100)
Problem:    Warning for signed/unsigned.
Solution:   Use size_t instead of int. (Mike Williams)

src/proto/usercmd.pro
src/usercmd.c
src/version.c
src/vim9execute.c

index d24e9ad9498eefc3cf55279aef3269821df47f61..9e16a80e6a7e8b9e33b93537e438afc48687ed26 100644 (file)
@@ -15,6 +15,6 @@ void ex_comclear(exarg_T *eap);
 void uc_clear(garray_T *gap);
 void ex_delcommand(exarg_T *eap);
 size_t add_win_cmd_modifers(char_u *buf, cmdmod_T *cmod, int *multi_mods);
-int produce_cmdmods(char_u *buf, cmdmod_T *cmod, int quote);
+size_t produce_cmdmods(char_u *buf, cmdmod_T *cmod, int quote);
 void do_ucmd(exarg_T *eap);
 /* vim: set ft=c : */
index ac013300fe2ae8af371f5d9771f3b322d88fbcd4..82b19bb04d918d6e17748645bdac7fe52ed9478c 100644 (file)
@@ -1269,10 +1269,10 @@ add_win_cmd_modifers(char_u *buf, cmdmod_T *cmod, int *multi_mods)
  * Generate text for the "cmod" command modifiers.
  * If "buf" is NULL just return the length.
  */
-    int
+    size_t
 produce_cmdmods(char_u *buf, cmdmod_T *cmod, int quote)
 {
-    int            result = 0;
+    size_t  result = 0;
     int            multi_mods = 0;
     int            i;
     typedef struct {
index 1cde8c724565b5e9acb00d11eaf61db05ab61eae..4acc9c4987e61a09c9901a7f6e36414c103fff0a 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1906,
 /**/
     1905,
 /**/
index 10746b1c0dae02904654241fadb4d360d53a6287..341e5d02ac5ffaf574d4e1d8c6c33fd96b8e6027 100644 (file)
@@ -3530,7 +3530,7 @@ ex_disassemble(exarg_T *eap)
            case ISN_CMDMOD:
                {
                    char_u  *buf;
-                   int     len = produce_cmdmods(
+                   size_t  len = produce_cmdmods(
                                  NULL, iptr->isn_arg.cmdmod.cf_cmdmod, FALSE);
 
                    buf = alloc(len + 1);