comparison src/usercmd.c @ 22715:8968ed4ba4ba v8.2.1906

patch 8.2.1906: warning for signed/unsigned Commit: https://github.com/vim/vim/commit/a360dbe3b63bdca93bbf8cc431578a446e8ce14c Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 26 18:46:53 2020 +0100 patch 8.2.1906: warning for signed/unsigned Problem: Warning for signed/unsigned. Solution: Use size_t instead of int. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Mon, 26 Oct 2020 19:00:04 +0100
parents f2bfee4ac356
children 9a5f12b36273
comparison
equal deleted inserted replaced
22714:3a5093628329 22715:8968ed4ba4ba
1267 1267
1268 /* 1268 /*
1269 * Generate text for the "cmod" command modifiers. 1269 * Generate text for the "cmod" command modifiers.
1270 * If "buf" is NULL just return the length. 1270 * If "buf" is NULL just return the length.
1271 */ 1271 */
1272 int 1272 size_t
1273 produce_cmdmods(char_u *buf, cmdmod_T *cmod, int quote) 1273 produce_cmdmods(char_u *buf, cmdmod_T *cmod, int quote)
1274 { 1274 {
1275 int result = 0; 1275 size_t result = 0;
1276 int multi_mods = 0; 1276 int multi_mods = 0;
1277 int i; 1277 int i;
1278 typedef struct { 1278 typedef struct {
1279 int flag; 1279 int flag;
1280 char *name; 1280 char *name;