comparison src/vim9compile.c @ 26248:36361f080ffd v8.2.3655

patch 8.2.3655: compiler warning for using size_t for int Commit: https://github.com/vim/vim/commit/cc9d725bbb515baf172c2be21de12d35a961e4ee Author: Mike Williams <mikew@globalgraphics.com> Date: Tue Nov 23 12:35:57 2021 +0000 patch 8.2.3655: compiler warning for using size_t for int Problem: Compiler warning for using size_t for int. Solution: Add a type cast. (Mike Williams, closes https://github.com/vim/vim/issues/9199)
author Bram Moolenaar <Bram@vim.org>
date Tue, 23 Nov 2021 13:45:03 +0100
parents 14b4c778b61e
children 3841da4eac23
comparison
equal deleted inserted replaced
26247:6c9af12fbb17 26248:36361f080ffd
8253 if (generate_instr_drop(cctx, ISN_DROP, 1) == NULL) 8253 if (generate_instr_drop(cctx, ISN_DROP, 1) == NULL)
8254 goto failed; 8254 goto failed;
8255 } 8255 }
8256 else 8256 else
8257 { 8257 {
8258 if (!valid_varname(arg, varlen, FALSE)) 8258 if (!valid_varname(arg, (int)varlen, FALSE))
8259 goto failed; 8259 goto failed;
8260 if (lookup_local(arg, varlen, NULL, cctx) == OK) 8260 if (lookup_local(arg, varlen, NULL, cctx) == OK)
8261 { 8261 {
8262 semsg(_(e_variable_already_declared), arg); 8262 semsg(_(e_variable_already_declared), arg);
8263 goto failed; 8263 goto failed;