From: Kenichi Handa Date: Thu, 9 Apr 1998 05:40:23 +0000 (+0000) Subject: (MULTIBYTE_FORM_LENGTH): Don't check LEN here. X-Git-Tag: emacs-20.3~1630 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d121936ff01c95989a3dcd173f8f16dcb470da19;p=emacs.git (MULTIBYTE_FORM_LENGTH): Don't check LEN here. --- diff --git a/src/charset.h b/src/charset.h index 5ee27bf9003..9645db2a054 100644 --- a/src/charset.h +++ b/src/charset.h @@ -612,10 +612,9 @@ else /* 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