summaryrefslogtreecommitdiff
path: root/src/charset.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-12 21:31:58 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-12 21:31:58 +0100
commit977d03733601948ab334fec24d0da82bc18c57c3 (patch)
tree69d97b16128161226378e35bd29bbf5e974c5675 /src/charset.c
parent025a6b708a9bff54c73fb9c641b980da19e943a9 (diff)
downloadvim-git-977d03733601948ab334fec24d0da82bc18c57c3.tar.gz
patch 8.0.0454: compiler warnings for "always true" comparisonv8.0.0454
Problem: Compiler warnings for comparing unsigned char with 256 always being true. (Manuel Ortega) Solution: Add type cast.
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charset.c b/src/charset.c
index 2091d233b..29c587b52 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1090,7 +1090,7 @@ win_lbr_chartabsize(
*/
if (wp->w_p_lbr
&& VIM_ISBREAK(c)
- && !VIM_ISBREAK(s[1])
+ && !VIM_ISBREAK((int)s[1])
&& wp->w_p_wrap
# ifdef FEAT_WINDOWS
&& wp->w_width != 0
@@ -1120,7 +1120,7 @@ win_lbr_chartabsize(
if (!(c != NUL
&& (VIM_ISBREAK(c)
|| (!VIM_ISBREAK(c)
- && (col2 == col || !VIM_ISBREAK(*ps))))))
+ && (col2 == col || !VIM_ISBREAK((int)*ps))))))
break;
col2 += win_chartabsize(wp, s, col2);