diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2008-03-06 16:42:54 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2008-03-06 16:42:54 +0000 |
commit | 9fb0f8dea203e2f3dd2ea715924c6ac08519e523 (patch) | |
tree | 52c05abc6d05249dd2f1084f3b50c704e4467a5c /Src | |
parent | 74c4a9c9bef38871bdab5987822e3ea55d8d85a1 (diff) | |
download | zsh-9fb0f8dea203e2f3dd2ea715924c6ac08519e523.tar.gz zsh-9fb0f8dea203e2f3dd2ea715924c6ac08519e523.tar.xz zsh-9fb0f8dea203e2f3dd2ea715924c6ac08519e523.zip |
Fixed two compiler warnings about comparing signed/unsigned.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/zle_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index a146b67c0..d702be845 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -294,7 +294,7 @@ stringaszleline(char *instr, int incs, int *outll, int *outsz, int *outcs) * (certainly true for Unicode and unlikely to be false * in any non-pathological multibyte representation). */ cnt = 1; - } else if (cnt > ll) { + } else if (cnt > (size_t)ll) { /* * Some multibyte implementations return the * full length of a previous incomplete character @@ -857,7 +857,7 @@ showmsg(char const *msg) * Paranoia: only needed if we start in the middle * of a multibyte string and only in some implementations. */ - if (cnt > ulen) + if (cnt > (size_t)ulen) cnt = ulen; n = wcs_nicechar(c, &width, NULL); break; |