Mercurial > emacs
diff src/charset.h @ 21444:0cba6f211d7c
(MULTIBYTE_FORM_LENGTH): Don't check LEN here.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 09 Apr 1998 05:40:23 +0000 |
parents | 95aae2ff5fcd |
children | 90f77c401689 |
line wrap: on
line diff
--- a/src/charset.h Thu Apr 09 05:40:23 1998 +0000 +++ b/src/charset.h Thu Apr 09 05:40:23 1998 +0000 @@ -612,10 +612,9 @@ /* Return the length of the multi-byte form at string STR of length LEN. */ -#define MULTIBYTE_FORM_LENGTH(str, len) \ - ((BYTES_BY_CHAR_HEAD (*(unsigned char *)(str)) == 1 \ - || BYTES_BY_CHAR_HEAD (*(unsigned char *)(str)) > (len)) \ - ? 1 \ +#define MULTIBYTE_FORM_LENGTH(str, len) \ + (BYTES_BY_CHAR_HEAD (*(unsigned char *)(str)) == 1 \ + ? 1 \ : multibyte_form_length (str, len)) /* Set C a (possibly multibyte) character at P. P points into a