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/undo.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/undo.c')
-rw-r--r-- | src/nvim/undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index de963683fe..c7d5dacfed 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -916,7 +916,7 @@ static u_entry_T *unserialize_uep(FILE *fp, int *error, char_u *file_name) for (i = 0; i < uep->ue_size; ++i) { line_len = get4c(fp); if (line_len >= 0) - line = read_string(fp, line_len); + line = READ_STRING(fp, line_len); else { line = NULL; corruption_error("line length", file_name); @@ -1316,7 +1316,7 @@ void u_read_undo(char_u *name, char_u *hash, char_u *orig_name) if (str_len < 0) goto error; if (str_len > 0) - line_ptr = read_string(fp, str_len); + line_ptr = READ_STRING(fp, str_len); line_lnum = (linenr_T)get4c(fp); line_colnr = (colnr_T)get4c(fp); if (line_lnum < 0 || line_colnr < 0) { |