Merge #3745 from cacplate/ops_Wconversion

Enable -Wconversion in ops.c
This commit is contained in:
Justin M. Keyes
2016-06-13 04:33:30 -04:00
committed by GitHub
13 changed files with 324 additions and 324 deletions

View File

@@ -1891,7 +1891,7 @@ ex_let_one (
}
}
if (p != NULL) {
write_reg_contents(*arg == '@' ? '"' : *arg, p, -1, FALSE);
write_reg_contents(*arg == '@' ? '"' : *arg, p, STRLEN(p), false);
arg_end = arg + 1;
}
xfree(ptofree);
@@ -14920,7 +14920,8 @@ static void f_setreg(typval_T *argvars, typval_T *rettv)
}
*curval++ = NULL;
write_reg_contents_lst(regname, lstval, -1, append, yank_type, block_len);
write_reg_contents_lst(regname, lstval, STRLEN(lstval),
append, yank_type, block_len);
free_lstval:
while (curallocval > allocval)
@@ -14931,7 +14932,8 @@ free_lstval:
if (strval == NULL) {
return;
}
write_reg_contents_ex(regname, strval, -1, append, yank_type, block_len);
write_reg_contents_ex(regname, strval, STRLEN(strval),
append, yank_type, block_len);
}
rettv->vval.v_number = 0;
}