diff options
author | dundargoc <gocdundar@gmail.com> | 2023-09-29 14:58:48 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-11-05 20:19:06 +0100 |
commit | acc646ad8fc3ef11fcc63b69f3d8484e4a91accd (patch) | |
tree | 613753f19fe6f6fa45884750eb176c1517269ec2 /src/nvim/main.c | |
parent | c513cbf361000e6f09cd5b71b718e9de3f88904d (diff) | |
download | rneovim-acc646ad8fc3ef11fcc63b69f3d8484e4a91accd.tar.gz rneovim-acc646ad8fc3ef11fcc63b69f3d8484e4a91accd.tar.bz2 rneovim-acc646ad8fc3ef11fcc63b69f3d8484e4a91accd.zip |
refactor: the long goodbye
long is 32 bits on windows, while it is 64 bits on other architectures.
This makes the type suboptimal for a codebase meant to be
cross-platform. Replace it with more appropriate integer types.
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 88d198bfa5..433b735c2e 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -585,7 +585,7 @@ int main(int argc, char **argv) // 'autochdir' has been postponed. do_autochdir(); - set_vim_var_nr(VV_VIM_DID_ENTER, 1L); + set_vim_var_nr(VV_VIM_DID_ENTER, 1); apply_autocmds(EVENT_VIMENTER, NULL, NULL, false, curbuf); TIME_MSG("VimEnter autocommands"); if (use_remote_ui) { @@ -610,7 +610,7 @@ int main(int argc, char **argv) // scrollbind, sync the scrollbind now. if (curwin->w_p_diff && curwin->w_p_scb) { update_topline(curwin); - check_scrollbind((linenr_T)0, 0L); + check_scrollbind((linenr_T)0, 0); TIME_MSG("diff scrollbinding"); } @@ -1027,7 +1027,7 @@ static void command_line_scan(mparm_T *parmp) int argv_idx; // index in argv[n][] bool had_minmin = false; // found "--" argument int want_argument; // option argument with argument - long n; + int n; argc--; argv++; |