Mercurial > emacs
diff src/minibuf.c @ 9183:f49aca34b7ae
(scmp): Use unsigned chars, to avoid confusing DOWNCASE.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 29 Sep 1994 19:37:26 +0000 |
parents | ed766dfb4efe |
children | 5f7cfbdef872 |
line wrap: on
line diff
--- a/src/minibuf.c Thu Sep 29 19:23:41 1994 +0000 +++ b/src/minibuf.c Thu Sep 29 19:37:26 1994 +0000 @@ -774,8 +774,9 @@ Return -1 if strings match, else number of chars that match at the beginning. */ +int scmp (s1, s2, len) - register char *s1, *s2; + register unsigned char *s1, *s2; int len; { register int l = len; @@ -792,7 +793,8 @@ } if (l == 0) return -1; - else return len - l; + else + return len - l; } DEFUN ("all-completions", Fall_completions, Sall_completions, 2, 3, 0,