0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.1906: warning for signed/unsigned

Problem:    Warning for signed/unsigned.
Solution:   Use size_t instead of int. (Mike Williams)
This commit is contained in:
Bram Moolenaar 2020-10-26 18:46:53 +01:00
parent 4882d98339
commit a360dbe3b6
4 changed files with 6 additions and 4 deletions

View 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 : */

View 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 {

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1906,
/**/
1905,
/**/

View 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);