mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 12:28:18 +00:00
vim-patch:8.2.4241: some type casts are redundant
Problem: Some type casts are redundant.
Solution: Remove the type casts. (closes vim/vim#9643)
420fabcd4f
This is not a literal port but an equivalent one.
This commit is contained in:
@@ -682,7 +682,7 @@ int nlua_call(lua_State *lstate)
|
||||
typval_T vim_args[MAX_FUNC_ARGS + 1];
|
||||
int i = 0; // also used for freeing the variables
|
||||
for (; i < nargs; i++) {
|
||||
lua_pushvalue(lstate, (int)i+2);
|
||||
lua_pushvalue(lstate, i+2);
|
||||
if (!nlua_pop_typval(lstate, &vim_args[i])) {
|
||||
api_set_error(&err, kErrorTypeException,
|
||||
"error converting argument %d", i+1);
|
||||
@@ -747,7 +747,7 @@ static int nlua_rpc(lua_State *lstate, bool request)
|
||||
Array args = ARRAY_DICT_INIT;
|
||||
|
||||
for (int i = 0; i < nargs; i++) {
|
||||
lua_pushvalue(lstate, (int)i+3);
|
||||
lua_pushvalue(lstate, i+3);
|
||||
ADD(args, nlua_pop_Object(lstate, false, &err));
|
||||
if (ERROR_SET(&err)) {
|
||||
api_free_array(args);
|
||||
|
Reference in New Issue
Block a user