diff options
author | dundargoc <gocdundar@gmail.com> | 2023-09-26 22:36:08 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-09-29 14:56:34 +0200 |
commit | af7d317f3ff31d5ac5d8724b5057a422e1451b54 (patch) | |
tree | c05c26591b00105d03684cb3179da935d104a964 /src/nvim/window.c | |
parent | 9afbfb4d646cd240e97dbaae109f12bfc853112c (diff) | |
download | rneovim-af7d317f3ff31d5ac5d8724b5057a422e1451b54.tar.gz rneovim-af7d317f3ff31d5ac5d8724b5057a422e1451b54.tar.bz2 rneovim-af7d317f3ff31d5ac5d8724b5057a422e1451b54.zip |
refactor: remove long
long is 32-bits even on 64-bit windows which makes the type suboptimal
for a codebase meant to be cross-platform.
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index dbbbd9f87e..bcec916e01 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -5741,7 +5741,7 @@ void win_size_restore(garray_T *gap) { if (win_count() * 2 + 1 == gap->ga_len && ((int *)gap->ga_data)[0] == - (int)ROWS_AVAIL + global_stl_height() - last_stl_height(false)) { + ROWS_AVAIL + global_stl_height() - last_stl_height(false)) { // The order matters, because frames contain other frames, but it's // difficult to get right. The easy way out is to do it twice. for (int j = 0; j < 2; j++) { @@ -6764,7 +6764,7 @@ void win_new_width(win_T *wp, int width) void win_comp_scroll(win_T *wp) { - const long old_w_p_scr = wp->w_p_scr; + const OptInt old_w_p_scr = wp->w_p_scr; wp->w_p_scr = wp->w_height_inner / 2; if (wp->w_p_scr == 0) { |