Commit d121936f authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(MULTIBYTE_FORM_LENGTH): Don't check LEN here.

parent a2c983d5
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment