diff options
author | =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> | 2021-10-02 11:26:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-02 11:26:51 +0100 |
commit | dfa5e464d459f84200a73d178f1ecefe75bbe511 (patch) | |
tree | 2bf8a9283ea1bb99757758918884b9a92f2db659 /src/getchar.c | |
parent | 51491adfa86fd66a857cd7ec50d0b57dbdf3da59 (diff) |
patch 8.2.3460: some type casts are not neededv8.2.3460
Problem: Some type casts are not needed.
Solution: Remove unnecessary type casts. (closes #8934)
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/getchar.c b/src/getchar.c index 52c77210a2..2d31c03e8b 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -1853,7 +1853,7 @@ vgetc(void) // or a K_SPECIAL - KS_EXTRA - KE_CSI, which is CSI // too. c = vgetorpeek(TRUE); - if (vgetorpeek(TRUE) == (int)KE_CSI && c == KS_EXTRA) + if (vgetorpeek(TRUE) == KE_CSI && c == KS_EXTRA) buf[i] = CSI; } } @@ -2521,7 +2521,7 @@ handle_mapping( if (*s == RM_SCRIPT && (mp->m_keys[0] != K_SPECIAL || mp->m_keys[1] != KS_EXTRA - || mp->m_keys[2] != (int)KE_SNR)) + || mp->m_keys[2] != KE_SNR)) continue; // If one of the typed keys cannot be remapped, skip the @@ -3139,7 +3139,7 @@ vgetorpeek(int advance) if (!VIM_ISWHITE(ptr[col])) curwin->w_wcol = vcol; vcol += lbr_chartabsize(ptr, ptr + col, - (colnr_T)vcol); + vcol); if (has_mbyte) col += (*mb_ptr2len)(ptr + col); else |