]> git.eshelyaron.com Git - emacs.git/commitdiff
(MULTIBYTE_FORM_LENGTH): Don't check LEN here.
authorKenichi Handa <handa@m17n.org>
Thu, 9 Apr 1998 05:40:23 +0000 (05:40 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 9 Apr 1998 05:40:23 +0000 (05:40 +0000)
src/charset.h

index 5ee27bf90036a3d4fee8eeee8c8528334adeeb6b..9645db2a05451a234da170bfe02d700ada77f3d5 100644 (file)
@@ -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