aboutsummaryrefslogtreecommitdiffstats
path: root/enc/euc_tw.c
diff options
context:
space:
mode:
Diffstat (limited to 'enc/euc_tw.c')
-rw-r--r--enc/euc_tw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/euc_tw.c b/enc/euc_tw.c
index 8638021cc1..427c5cbc4b 100644
--- a/enc/euc_tw.c
+++ b/enc/euc_tw.c
@@ -89,7 +89,7 @@ euctw_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
return onigenc_mb4_is_code_ctype(enc, code, ctype);
}
-#define euctw_islead(c) (((c) < 0xa1 && (c) != 0x8e) || (c) == 0xff)
+#define euctw_islead(c) ((UChar )((c) - 0xa1) > 0xfe - 0xa1)
static UChar*
euctw_left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc)