From 829f7f7ce35084a2ebb888b3dfd47c18c434e634 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 29 Sep 1994 19:37:26 +0000 Subject: [PATCH] (scmp): Use unsigned chars, to avoid confusing DOWNCASE. --- src/minibuf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/minibuf.c b/src/minibuf.c index 4d64c33f2cb..10f95d6d56b 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -774,8 +774,9 @@ The argument given to PREDICATE is the alist element or the symbol from the obar 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 @@ scmp (s1, s2, len) } if (l == 0) return -1; - else return len - l; + else + return len - l; } DEFUN ("all-completions", Fall_completions, Sall_completions, 2, 3, 0, -- 2.39.5