diff options
author | Shane Iler <sriler@gmail.com> | 2014-06-30 16:22:10 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-11 18:11:20 -0400 |
commit | d61829dd0694e442ae6794dbc415ea27f5585b75 (patch) | |
tree | 47f68d9b00c2401af20b9397f0fe0647cc59ec0a /src/nvim/spell.c | |
parent | fa1d9301f7f1c2b4ea426125e513d3724394df49 (diff) | |
download | rneovim-d61829dd0694e442ae6794dbc415ea27f5585b75.tar.gz rneovim-d61829dd0694e442ae6794dbc415ea27f5585b75.tar.bz2 rneovim-d61829dd0694e442ae6794dbc415ea27f5585b75.zip |
Enable and fix misc2.c -Wconversion warnings #907
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 55e86d1339..1607f037a9 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -2600,7 +2600,7 @@ spell_load_file ( res = 0; switch (n) { case SN_INFO: - lp->sl_info = read_string(fd, len); // <infotext> + lp->sl_info = READ_STRING(fd, len); // <infotext> if (lp->sl_info == NULL) goto endFAIL; break; @@ -2614,7 +2614,7 @@ spell_load_file ( break; case SN_MIDWORD: - lp->sl_midword = read_string(fd, len); // <midword> + lp->sl_midword = READ_STRING(fd, len); // <midword> if (lp->sl_midword == NULL) goto endFAIL; break; @@ -2640,7 +2640,7 @@ spell_load_file ( break; case SN_MAP: - p = read_string(fd, len); // <mapstr> + p = READ_STRING(fd, len); // <mapstr> if (p == NULL) goto endFAIL; set_map_str(lp, p); @@ -2668,7 +2668,7 @@ spell_load_file ( break; case SN_SYLLABLE: - lp->sl_syllable = read_string(fd, len); // <syllable> + lp->sl_syllable = READ_STRING(fd, len); // <syllable> if (lp->sl_syllable == NULL) goto endFAIL; if (init_syl_tab(lp) == FAIL) @@ -2764,7 +2764,7 @@ static char_u *read_cnt_string(FILE *fd, int cnt_bytes, int *cntp) if (cnt == 0) return NULL; // nothing to read, return NULL - str = read_string(fd, cnt); + str = READ_STRING(fd, cnt); if (str == NULL) *cntp = SP_OTHERERROR; return str; |