aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/spellfile.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-11-11 11:20:08 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-11-11 13:31:17 +0100
commit8e58d37f2e15ac8540377148e55ed08a039aadb6 (patch)
tree799dd1f30d375ac8cdeae196fceec9d2ad0f134a /src/nvim/spellfile.c
parentc4ad15ae324f6460c683a64c44d65e693e1f39bb (diff)
downloadrneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.tar.gz
rneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.tar.bz2
rneovim-8e58d37f2e15ac8540377148e55ed08a039aadb6.zip
refactor: remove redundant casts
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 3d3da3c3d6..555af8bc50 100644
--- a/src/nvim/spellfile.c
+++ b/src/nvim/spellfile.c
@@ -3438,7 +3438,7 @@ static int store_aff_word(spellinfo_T *spin, char *word, char *afflist, afffile_
&& (ae->ae_chop == NULL
|| strlen(ae->ae_chop) < wordlen)
&& (ae->ae_prog == NULL
- || vim_regexec_prog(&ae->ae_prog, false, word, (colnr_T)0))
+ || vim_regexec_prog(&ae->ae_prog, false, word, 0))
&& (((condit & CONDIT_CFIX) == 0)
== ((condit & CONDIT_AFF) == 0
|| ae->ae_flags == NULL
@@ -4344,7 +4344,7 @@ static int write_vim_spell(spellinfo_T *spin, char *fname)
// <HEADER>: <fileID> <versionnr>
// <fileID>
size_t fwv = fwrite(VIMSPELLMAGIC, VIMSPELLMAGICL, 1, fd);
- if (fwv != (size_t)1) {
+ if (fwv != 1) {
// Catch first write error, don't try writing more.
goto theend;
}
@@ -4702,7 +4702,7 @@ theend:
retval = FAIL;
}
- if (fwv != (size_t)1) {
+ if (fwv != 1) {
retval = FAIL;
}
if (retval == FAIL) {
@@ -5181,7 +5181,7 @@ static void sug_write(spellinfo_T *spin, char *fname)
spell_message(spin, IObuff);
// <SUGHEADER>: <fileID> <versionnr> <timestamp>
- if (fwrite(VIMSUGMAGIC, VIMSUGMAGICL, (size_t)1, fd) != 1) { // <fileID>
+ if (fwrite(VIMSUGMAGIC, VIMSUGMAGICL, 1, fd) != 1) { // <fileID>
emsg(_(e_write));
goto theend;
}