diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2015-03-21 20:34:35 +0100 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2015-04-07 12:56:28 +0200 |
commit | fa2fcf13aaf67919fdcfb9c736b883aba73c3cc2 (patch) | |
tree | 5d0b585e88afc41294a7d41032071098b2a1965b /src/nvim/ops.c | |
parent | c5d7fa615d5c091345ebe2e3472404ef04feda2e (diff) | |
download | rneovim-fa2fcf13aaf67919fdcfb9c736b883aba73c3cc2.tar.gz rneovim-fa2fcf13aaf67919fdcfb9c736b883aba73c3cc2.tar.bz2 rneovim-fa2fcf13aaf67919fdcfb9c736b883aba73c3cc2.zip |
Enable -Wconversion: fold.c.
Refactor summary:
- foldinfo_T.fi_lnum: int --> linenr_T
Reorder field for optimal packing.
- foldAddMarker(..., markerlen): int --> size_t
* foldstartmarkerlen: int --> size_t
- foldDelMarker(..., markerlen): int --> size_t
* foldendmarkerlen: int --> size_t
Helped-by: oni-link <knil.ino@gmail.com>
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 5921e27282..4c5a002f81 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -278,7 +278,7 @@ shift_line ( { int count; int i, j; - int p_sw = (int)get_sw_value(curbuf); + int p_sw = get_sw_value(curbuf); count = get_indent(); /* get current indent */ @@ -321,7 +321,7 @@ static void shift_block(oparg_T *oap, int amount) int total; char_u *newp, *oldp; int oldcol = curwin->w_cursor.col; - int p_sw = (int)get_sw_value(curbuf); + int p_sw = get_sw_value(curbuf); int p_ts = (int)curbuf->b_p_ts; struct block_def bd; int incr; |