about summary refs log tree commit diff
path: root/Src/pattern.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-05-28 19:21:05 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-05-28 19:21:05 +0000
commit14c7f464c2e1e08bbfbd5949c119ac34b404b7d4 (patch)
tree938d6e786aaaee68b36a394a61fa9c018cfdaa3e /Src/pattern.c
parentfea94cd79f6b2a3a8b8e3f64634af9b641a17822 (diff)
downloadzsh-14c7f464c2e1e08bbfbd5949c119ac34b404b7d4.tar.gz
zsh-14c7f464c2e1e08bbfbd5949c119ac34b404b7d4.tar.xz
zsh-14c7f464c2e1e08bbfbd5949c119ac34b404b7d4.zip
Silenced two signed/unsigned comparison compiler warnings.
Diffstat (limited to 'Src/pattern.c')
-rw-r--r--Src/pattern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/pattern.c b/Src/pattern.c
index 264144382..4701522d1 100644
--- a/Src/pattern.c
+++ b/Src/pattern.c
@@ -425,7 +425,7 @@ patcompile(char *exp, int inflags, char **endexp)
 		    len = 0;
 		    for (; pscan; pscan = PATNEXT(pscan))
 			if (P_OP(pscan) == P_EXACTLY &&
-			    strlen((char *)P_OPERAND(pscan)) >= len) {
+			    (int)strlen((char *)P_OPERAND(pscan)) >= len) {
 			    lng = (char *)P_OPERAND(pscan);
 			    len = strlen(lng);
 			}
@@ -2023,7 +2023,7 @@ patmatch(Upat prog)
 		    int ptlen = strlen(patinput);
 		    int oplen = strlen(nextop);
 		    /* Are we in the right range? */
-		    if (oplen > strlen(min ? METANEXT(start) : start) ||
+		    if (oplen > (int)strlen(min ? METANEXT(start) : start) ||
 			oplen < ptlen)
 			return 0;
 		    /* Yes, just position appropriately and test. */