diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-07-19 15:30:57 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-07-31 00:52:59 +0200 |
commit | 824a729628950d72834b98faf28d18b7a94eefb2 (patch) | |
tree | d8640bdac1d1e03e340787406328f45247c63509 /src/nvim/regexp_bt.c | |
parent | 9511faa819e8260aa7ae2c2ff140070bbc96efa9 (diff) | |
download | rneovim-824a729628950d72834b98faf28d18b7a94eefb2.tar.gz rneovim-824a729628950d72834b98faf28d18b7a94eefb2.tar.bz2 rneovim-824a729628950d72834b98faf28d18b7a94eefb2.zip |
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/regexp_bt.c')
-rw-r--r-- | src/nvim/regexp_bt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/regexp_bt.c b/src/nvim/regexp_bt.c index 5bb17e0939..fff5ae9b7f 100644 --- a/src/nvim/regexp_bt.c +++ b/src/nvim/regexp_bt.c @@ -1689,7 +1689,7 @@ static int seen_endbrace(int refnum) // Trick: check if "@<=" or "@<!" follows, in which case // the \1 can appear before the referenced match. - for (p = regparse; *p != NUL; p++) { + for (p = (char_u *)regparse; *p != NUL; p++) { if (p[0] == '@' && p[1] == '<' && (p[2] == '!' || p[2] == '=')) { break; } @@ -2469,7 +2469,7 @@ do_multibyte: // Need to get composing character too. for (;;) { l = utf_ptr2len((char *)regparse); - if (!utf_composinglike(regparse, regparse + l)) { + if (!utf_composinglike((char_u *)regparse, (char_u *)regparse + l)) { break; } regmbc(utf_ptr2char((char *)regparse)); |