1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-10 19:11:17 +01:00

Fixed two compiler warnings about comparing signed/unsigned.

This commit is contained in:
Wayne Davison 2008-03-06 16:42:54 +00:00
parent 74c4a9c9be
commit 9fb0f8dea2

View file

@ -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;