aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-23 18:11:03 +0800
committerGitHub <noreply@github.com>2023-05-23 18:11:03 +0800
commit677e02be4e1255435a39d25a4b12ecbed4fff37b (patch)
tree9411b30ef70fc0682d07c1bc17f3aa697b07b0ac /src/nvim/lua/executor.c
parent30c02781cac103312e022d62797c08fef0f3e6c1 (diff)
downloadrneovim-677e02be4e1255435a39d25a4b12ecbed4fff37b.tar.gz
rneovim-677e02be4e1255435a39d25a4b12ecbed4fff37b.tar.bz2
rneovim-677e02be4e1255435a39d25a4b12ecbed4fff37b.zip
refactor: fix clang/PVS warnings (#23731)
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index 0069ba8ceb..8c1d8addcd 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -341,7 +341,7 @@ static int nlua_init_argv(lua_State *const L, char **argv, int argc, int lua_arg
lua_pushstring(L, argv[lua_arg0 - 1]);
lua_rawseti(L, -2, 0); // _G.arg[0] = "foo.lua"
- for (; lua_arg0 >= 0 && i + lua_arg0 < argc; i++) {
+ for (; i + lua_arg0 < argc; i++) {
lua_pushstring(L, argv[i + lua_arg0]);
lua_rawseti(L, -2, i + 1); // _G.arg[i+1] = "--foo"
}