1
0
forked from aniani/vim

patch 9.0.0063: too many type casts for dict_get functions

Problem:    Too many type casts for dict_get functions.
Solution:   Change the key argument from "char_u *" to "char *".
This commit is contained in:
Bram Moolenaar
2022-07-23 09:52:04 +01:00
parent 5ac50de83f
commit d61efa50f8
24 changed files with 193 additions and 202 deletions

View File

@@ -8549,7 +8549,7 @@ test_gui_w32_sendevent(dict_T *args)
char_u *event;
INPUT inputs[1];
event = dict_get_string(args, (char_u *)"event", TRUE);
event = dict_get_string(args, "event", TRUE);
if (event == NULL)
return FALSE;
@@ -8559,7 +8559,7 @@ test_gui_w32_sendevent(dict_T *args)
{
WORD vkCode;
vkCode = dict_get_number_def(args, (char_u *)"keycode", 0);
vkCode = dict_get_number_def(args, "keycode", 0);
if (vkCode <= 0 || vkCode >= 0xFF)
{
semsg(_(e_invalid_argument_nr), (long)vkCode);