mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
refactor: add const and remove unnecessary casts (#22841)
This commit is contained in:
@@ -623,7 +623,7 @@ static bool nlua_init_packages(lua_State *lstate, bool is_standalone)
|
||||
lua_getglobal(lstate, "require");
|
||||
lua_pushstring(lstate, "vim._init_packages");
|
||||
if (nlua_pcall(lstate, 1, 0)) {
|
||||
os_errmsg((char *)lua_tostring(lstate, -1));
|
||||
os_errmsg(lua_tostring(lstate, -1));
|
||||
os_errmsg("\n");
|
||||
return false;
|
||||
}
|
||||
|
@@ -288,7 +288,7 @@ int nlua_regex(lua_State *lstate)
|
||||
regprog_T *prog = NULL;
|
||||
|
||||
TRY_WRAP(&err, {
|
||||
prog = vim_regcomp((char *)text, RE_AUTO | RE_MAGIC | RE_STRICT);
|
||||
prog = vim_regcomp(text, RE_AUTO | RE_MAGIC | RE_STRICT);
|
||||
});
|
||||
|
||||
if (ERROR_SET(&err)) {
|
||||
|
Reference in New Issue
Block a user