Enable and fix misc2.c -Wconversion warnings #907

This commit is contained in:
Shane Iler
2014-06-30 16:22:10 -07:00
committed by Justin M. Keyes
parent fa1d9301f7
commit d61829dd06
5 changed files with 19 additions and 24 deletions

View File

@@ -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) {