From d121936ff01c95989a3dcd173f8f16dcb470da19 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 9 Apr 1998 05:40:23 +0000 Subject: [PATCH] (MULTIBYTE_FORM_LENGTH): Don't check LEN here. --- src/charset.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.39.2