diff options
| author | Karl Heuer | 1994-09-29 19:37:26 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-09-29 19:37:26 +0000 |
| commit | 829f7f7ce35084a2ebb888b3dfd47c18c434e634 (patch) | |
| tree | 83fe119ada291fbefd196606d4cae76eda23f743 /src | |
| parent | 7c118b57e6c99a1435f2e17e527a254c2648313f (diff) | |
| download | emacs-829f7f7ce35084a2ebb888b3dfd47c18c434e634.tar.gz emacs-829f7f7ce35084a2ebb888b3dfd47c18c434e634.zip | |
(scmp): Use unsigned chars, to avoid confusing DOWNCASE.
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 6 |
1 files 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 | |||
| 774 | Return -1 if strings match, | 774 | Return -1 if strings match, |
| 775 | else number of chars that match at the beginning. */ | 775 | else number of chars that match at the beginning. */ |
| 776 | 776 | ||
| 777 | int | ||
| 777 | scmp (s1, s2, len) | 778 | scmp (s1, s2, len) |
| 778 | register char *s1, *s2; | 779 | register unsigned char *s1, *s2; |
| 779 | int len; | 780 | int len; |
| 780 | { | 781 | { |
| 781 | register int l = len; | 782 | register int l = len; |
| @@ -792,7 +793,8 @@ scmp (s1, s2, len) | |||
| 792 | } | 793 | } |
| 793 | if (l == 0) | 794 | if (l == 0) |
| 794 | return -1; | 795 | return -1; |
| 795 | else return len - l; | 796 | else |
| 797 | return len - l; | ||
| 796 | } | 798 | } |
| 797 | 799 | ||
| 798 | DEFUN ("all-completions", Fall_completions, Sall_completions, 2, 3, 0, | 800 | DEFUN ("all-completions", Fall_completions, Sall_completions, 2, 3, 0, |