refactor: remove redundant casts

This commit is contained in:
ii14
2023-04-07 21:43:00 +02:00
committed by GitHub
parent 04933b1ea9
commit 2d78e656b7
30 changed files with 93 additions and 94 deletions

View File

@@ -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;