fix: "redundant cast to the same type" #15662

Apply "redundant cast to the same type" fix from clangd.
This commit is contained in:
dundargoc
2021-09-14 13:07:08 +02:00
committed by GitHub
parent 6ed43f8f1c
commit b8cce77702
9 changed files with 56 additions and 56 deletions

View File

@@ -1221,7 +1221,7 @@ retry:
// move the linerest to before the converted characters
line_start = ptr - linerest;
memmove(line_start, buffer, (size_t)linerest);
size = (long)((char_u *)top - ptr);
size = ((char_u *)top - ptr);
}
# endif
@@ -1397,7 +1397,7 @@ retry:
// move the linerest to before the converted characters
line_start = dest - linerest;
memmove(line_start, buffer, (size_t)linerest);
size = (long)((ptr + real_size) - dest);
size = ((ptr + real_size) - dest);
ptr = dest;
} else if (!curbuf->b_p_bin) {
bool incomplete_tail = false;
@@ -1652,7 +1652,7 @@ rewind_retry:
}
}
}
linerest = (long)(ptr - line_start);
linerest = (ptr - line_start);
os_breakcheck();
}