mirror of
https://github.com/vim/vim.git
synced 2025-10-26 09:14:23 -04:00
patch 9.1.1266: MS-Windows: type conversion warnings
Problem: MS-Windows: type conversion warnings Solution: cast the variables (Yegappan Lakshmanan) closes: #17027 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
2f4aa50c91
commit
7b6add0b4a
@@ -2962,7 +2962,7 @@ stuff_inserted(
|
||||
|
||||
do
|
||||
{
|
||||
stuffReadbuffLen(insert.string, insert.length);
|
||||
stuffReadbuffLen(insert.string, (long)insert.length);
|
||||
// a trailing "0" is inserted as "<C-V>048", "^" as "<C-V>^"
|
||||
switch (last)
|
||||
{
|
||||
@@ -5468,7 +5468,7 @@ do_insert_char_pre(int c)
|
||||
|
||||
// Lock the text to avoid weird things from happening.
|
||||
++textlock;
|
||||
set_vim_var_string(VV_CHAR, buf, buflen); // set v:char
|
||||
set_vim_var_string(VV_CHAR, buf, (int)buflen); // set v:char
|
||||
|
||||
res = NULL;
|
||||
if (ins_apply_autocmds(EVENT_INSERTCHARPRE))
|
||||
|
||||
Reference in New Issue
Block a user