diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-06-13 04:33:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-13 04:33:30 -0400 |
commit | 28cc5a06462090a0411201b2c44140c37a433a0f (patch) | |
tree | 3d198c60f3f2021a5db89faa61c8ea7fa33e70f7 /src/nvim/eval.c | |
parent | 0ea01c15861eb6952b5db45f6a6b6ef507954e5b (diff) | |
parent | c4da27095ccce52f9e2e7e0d80b5c1475c1fd66d (diff) | |
download | rneovim-28cc5a06462090a0411201b2c44140c37a433a0f.tar.gz rneovim-28cc5a06462090a0411201b2c44140c37a433a0f.tar.bz2 rneovim-28cc5a06462090a0411201b2c44140c37a433a0f.zip |
Merge #3745 from cacplate/ops_Wconversion
Enable -Wconversion in ops.c
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 93816d3ee6..111105fa37 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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; } |