mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
pos: define MAXCOL to INT_MAX
Partial port of patch v8.1.0953. Remove useless casts on MAXCOL.
This commit is contained in:
@@ -708,7 +708,7 @@ int ptr2cells(const char_u *p)
|
||||
/// @return number of character cells.
|
||||
int vim_strsize(char_u *s)
|
||||
{
|
||||
return vim_strnsize(s, (int)MAXCOL);
|
||||
return vim_strnsize(s, MAXCOL);
|
||||
}
|
||||
|
||||
/// Return the number of character cells string "s[len]" will take on the
|
||||
|
Reference in New Issue
Block a user