aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spellfile.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-04 22:35:50 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-07 14:54:01 +0200
commit2a378e6e82cececb12339f2df51ffe107039d867 (patch)
treeacf9250e683b303d2a22ff32455100cc4f6802cf /src/nvim/spellfile.c
parentd9ec57e16a13f66a4b17edd872786e2c67348752 (diff)
downloadrneovim-2a378e6e82cececb12339f2df51ffe107039d867.tar.gz
rneovim-2a378e6e82cececb12339f2df51ffe107039d867.tar.bz2
rneovim-2a378e6e82cececb12339f2df51ffe107039d867.zip
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/spellfile.c')
-rw-r--r--src/nvim/spellfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/spellfile.c b/src/nvim/spellfile.c
index c1b116e498..d4c0f389fb 100644
--- a/src/nvim/spellfile.c
+++ b/src/nvim/spellfile.c
@@ -2504,19 +2504,19 @@ static afffile_T *spell_read_aff(spellinfo_T *spin, char_u *fname)
// be empty or start with the same letter.
if (aff_entry->ae_chop != NULL
&& aff_entry->ae_add != NULL
- && aff_entry->ae_chop[utfc_ptr2len(aff_entry->ae_chop)] ==
+ && aff_entry->ae_chop[utfc_ptr2len((char *)aff_entry->ae_chop)] ==
NUL) {
int c, c_up;
- c = utf_ptr2char(aff_entry->ae_chop);
+ c = utf_ptr2char((char *)aff_entry->ae_chop);
c_up = SPELL_TOUPPER(c);
if (c_up != c
&& (aff_entry->ae_cond == NULL
- || utf_ptr2char(aff_entry->ae_cond) == c)) {
+ || utf_ptr2char((char *)aff_entry->ae_cond) == c)) {
p = aff_entry->ae_add
+ STRLEN(aff_entry->ae_add);
MB_PTR_BACK(aff_entry->ae_add, p);
- if (utf_ptr2char(p) == c_up) {
+ if (utf_ptr2char((char *)p) == c_up) {
upper = true;
aff_entry->ae_chop = NULL;
*p = NUL;