changeset 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 516fdeee89d6
children d50d31da6c8d
files src/minibuf.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
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,