diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-07-19 20:15:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-19 20:15:03 +0200 |
commit | d5f7099be23e217a1fe1f5443257f1b5d1eacfea (patch) | |
tree | 3f6408beb26e7c34f95fa05c5d84b1ac7ad880c1 /src/nvim/ops.c | |
parent | 7e4fd045f943156882f5efa502998d2f670fe256 (diff) | |
parent | aa28e070e9f953c26405d765addd9f780ede2c5a (diff) | |
download | rneovim-d5f7099be23e217a1fe1f5443257f1b5d1eacfea.tar.gz rneovim-d5f7099be23e217a1fe1f5443257f1b5d1eacfea.tar.bz2 rneovim-d5f7099be23e217a1fe1f5443257f1b5d1eacfea.zip |
Merge pull request #10541 from bfredl/conversion_getln
refactor: enable -Wconversion for ex_getln.c and use int for Rows/Columns
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 0f26d83597..29609def89 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -3433,7 +3433,7 @@ void ex_display(exarg_T *eap) msg_putchar(name); MSG_PUTS(" "); - int n = (int)Columns - 6; + int n = Columns - 6; for (size_t j = 0; j < yb->y_size && n > 1; j++) { if (j) { MSG_PUTS_ATTR("^J", attr); @@ -3525,7 +3525,7 @@ dis_msg ( int n; int l; - n = (int)Columns - 6; + n = Columns - 6; while (*p != NUL && !(*p == ESC && skip_esc && *(p + 1) == NUL) && (n -= ptr2cells(p)) >= 0) { |