diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-09-10 14:33:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-10 14:33:43 +0200 |
commit | 4638fcf4fb688fa548b8ce337ec3b7c1327fbfe9 (patch) | |
tree | b62862e24e506e0010852d23b68c79103637500c /src/nvim/lua/stdlib.c | |
parent | 40f9f479b746d0f76fbdd4bc0567d593ca7a6070 (diff) | |
parent | 684bc749efef0fa31395d349f4495d79ec5f3fd5 (diff) | |
download | rneovim-4638fcf4fb688fa548b8ce337ec3b7c1327fbfe9.tar.gz rneovim-4638fcf4fb688fa548b8ce337ec3b7c1327fbfe9.tar.bz2 rneovim-4638fcf4fb688fa548b8ce337ec3b7c1327fbfe9.zip |
Merge pull request #20068 from dundargoc/refactor/char_u/10
refactor: replace char_u with char 10: remove `FNAMECMP`, `FNAMENCMP` and `STRLCAT`
Diffstat (limited to 'src/nvim/lua/stdlib.c')
-rw-r--r-- | src/nvim/lua/stdlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/lua/stdlib.c b/src/nvim/lua/stdlib.c index 3051017846..9b1890403e 100644 --- a/src/nvim/lua/stdlib.c +++ b/src/nvim/lua/stdlib.c @@ -60,8 +60,8 @@ static int regex_match(lua_State *lstate, regprog_T **prog, char_u *str) *prog = rm.regprog; if (match) { - lua_pushinteger(lstate, (lua_Integer)(rm.startp[0] - str)); - lua_pushinteger(lstate, (lua_Integer)(rm.endp[0] - str)); + lua_pushinteger(lstate, (lua_Integer)(rm.startp[0] - (char *)str)); + lua_pushinteger(lstate, (lua_Integer)(rm.endp[0] - (char *)str)); return 2; } return 0; |