mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
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.
This commit is contained in:
@@ -527,8 +527,8 @@ static bool valid_filetype(const char *val)
|
||||
/// @return error message, NULL if it's OK.
|
||||
const char *did_set_mousescroll(optset_T *args FUNC_ATTR_UNUSED)
|
||||
{
|
||||
long vertical = -1;
|
||||
long horizontal = -1;
|
||||
OptInt vertical = -1;
|
||||
OptInt horizontal = -1;
|
||||
|
||||
char *string = p_mousescroll;
|
||||
|
||||
@@ -542,7 +542,7 @@ const char *did_set_mousescroll(optset_T *args FUNC_ATTR_UNUSED)
|
||||
return e_invarg;
|
||||
}
|
||||
|
||||
long *direction;
|
||||
OptInt *direction;
|
||||
|
||||
if (memcmp(string, "ver:", 4) == 0) {
|
||||
direction = &vertical;
|
||||
@@ -1944,7 +1944,7 @@ const char *did_set_varsofttabstop(optset_T *args)
|
||||
return e_invarg;
|
||||
}
|
||||
|
||||
long *oldarray = buf->b_p_vsts_array;
|
||||
colnr_T *oldarray = buf->b_p_vsts_array;
|
||||
if (tabstop_set(*varp, &(buf->b_p_vsts_array))) {
|
||||
xfree(oldarray);
|
||||
} else {
|
||||
@@ -1975,7 +1975,7 @@ const char *did_set_vartabstop(optset_T *args)
|
||||
return e_invarg;
|
||||
}
|
||||
|
||||
long *oldarray = buf->b_p_vts_array;
|
||||
colnr_T *oldarray = buf->b_p_vts_array;
|
||||
if (tabstop_set(*varp, &(buf->b_p_vts_array))) {
|
||||
xfree(oldarray);
|
||||
if (foldmethodIsIndent(win)) {
|
||||
|
Reference in New Issue
Block a user