]> git.eshelyaron.com Git - emacs.git/commitdiff
(scmp): Use unsigned chars, to avoid confusing DOWNCASE.
authorKarl Heuer <kwzh@gnu.org>
Thu, 29 Sep 1994 19:37:26 +0000 (19:37 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 29 Sep 1994 19:37:26 +0000 (19:37 +0000)
src/minibuf.c

index 4d64c33f2cbcb50d34ce6abd7d1207d0d9af9011..10f95d6d56bb4e81480c4fcd9c4417cc1fbc2182 100644 (file)
@@ -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;
 }
 \f
 DEFUN ("all-completions", Fall_completions, Sall_completions, 2, 3, 0,