aboutsummaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-20 12:59:31 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commitc049cb2b5103d1f9c71b9b90a197bf17205867a2 (patch)
tree31946b1200173aa4f3cf41ac63390c1c1e921900 /src/spell.c
parent182b84e1c3f37b540e8b4436bc08854b8be892eb (diff)
downloadrneovim-c049cb2b5103d1f9c71b9b90a197bf17205867a2.tar.gz
rneovim-c049cb2b5103d1f9c71b9b90a197bf17205867a2.tar.bz2
rneovim-c049cb2b5103d1f9c71b9b90a197bf17205867a2.zip
Use portable format specifiers: Case %ld - localized - smsg.
Fix uses of localized "%ld" within smsg(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/spell.c b/src/spell.c
index 78b7e581bd..5f899a06cc 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -7680,8 +7680,8 @@ static void spell_make_sugfile(spellinfo_T *spin, char_u *wfname)
if (sug_maketable(spin) == FAIL)
goto theend;
- smsg((char_u *)_("Number of words after soundfolding: %ld"),
- (long)spin->si_spellbuf->b_ml.ml_line_count);
+ smsg((char_u *)_("Number of words after soundfolding: %" PRId64),
+ (int64_t)spin->si_spellbuf->b_ml.ml_line_count);
/*
* Compress the soundfold trie.
@@ -9084,8 +9084,8 @@ void spell_suggest(int count)
MSG(_("Sorry, no suggestions"));
else if (count > 0) {
if (count > sug.su_ga.ga_len)
- smsg((char_u *)_("Sorry, only %ld suggestions"),
- (long)sug.su_ga.ga_len);
+ smsg((char_u *)_("Sorry, only %" PRId64 " suggestions"),
+ (int64_t)sug.su_ga.ga_len);
} else {
vim_free(repl_from);
repl_from = NULL;