mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
refactor: remove redundant casts
This commit is contained in:
@@ -265,7 +265,7 @@ static int get_winnr(tabpage_T *tp, typval_T *argvar)
|
||||
} else {
|
||||
// Extract the window count (if specified). e.g. winnr('3j')
|
||||
char *endp;
|
||||
long count = strtol((char *)arg, &endp, 10);
|
||||
long count = strtol(arg, &endp, 10);
|
||||
if (count <= 0) {
|
||||
// if count is not specified, default to 1
|
||||
count = 1;
|
||||
|
Reference in New Issue
Block a user