summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/charset.h7
1 files 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