summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
author=?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com>2022-01-28 15:28:04 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-28 15:28:04 +0000
commit420fabcd4ffeaf79082a6e43db91e1d363f88f27 (patch)
tree89938a5800078e96cdf992aca87e1c79a2f255ac /src/edit.c
parentfb80862e49fcbcf47907fc8cdaaf5c41cb9eb06e (diff)
patch 8.2.4241: some type casts are redundantv8.2.4241
Problem: Some type casts are redundant. Solution: Remove the type casts. (closes #9643)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/edit.c b/src/edit.c
index 2b5301100d..2a889631ae 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -523,7 +523,7 @@ edit(
if (
#ifdef FEAT_VARTABS
- (int)curwin->w_wcol < mincol - tabstop_at(
+ curwin->w_wcol < mincol - tabstop_at(
get_nolist_virtcol(), curbuf->b_p_ts,
curbuf->b_p_vts_array)
#else
@@ -2134,7 +2134,7 @@ insertchar(
return;
// Check whether this character should end a comment.
- if (did_ai && (int)c == end_comment_pending)
+ if (did_ai && c == end_comment_pending)
{
char_u *line;
char_u lead_end[COM_MAX_LEN]; // end-comment string
@@ -2907,7 +2907,7 @@ stuff_inserted(
// may want to stuff the command character, to start Insert mode
if (c != NUL)
stuffcharReadbuff(c);
- if ((esc_ptr = (char_u *)vim_strrchr(ptr, ESC)) != NULL)
+ if ((esc_ptr = vim_strrchr(ptr, ESC)) != NULL)
*esc_ptr = NUL; // remove the ESC
// when the last char is either "0" or "^" it will be quoted if no ESC