mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
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.
This commit is contained in:
@@ -1766,10 +1766,10 @@ bool apply_autocmds_group(event_T event, char *fname, char *fname_io, bool force
|
||||
patcmd.data = data;
|
||||
|
||||
// set v:cmdarg (only when there is a matching pattern)
|
||||
save_cmdbang = (long)get_vim_var_nr(VV_CMDBANG);
|
||||
save_cmdbang = get_vim_var_nr(VV_CMDBANG);
|
||||
if (eap != NULL) {
|
||||
save_cmdarg = set_cmdarg(eap, NULL);
|
||||
set_vim_var_nr(VV_CMDBANG, (long)eap->forceit);
|
||||
set_vim_var_nr(VV_CMDBANG, eap->forceit);
|
||||
} else {
|
||||
save_cmdarg = NULL; // avoid gcc warning
|
||||
}
|
||||
|
Reference in New Issue
Block a user