diff options
Diffstat (limited to 'enc/shift_jis.c')
-rw-r--r-- | enc/shift_jis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enc/shift_jis.c b/enc/shift_jis.c index e2bcaec189..5f5a802874 100644 --- a/enc/shift_jis.c +++ b/enc/shift_jis.c @@ -231,7 +231,7 @@ code_to_mbclen(OnigCodePoint code, OnigEncoding enc ARG_UNUSED) } else if (code <= 0xffff) { int low = code & 0xff; - if (low < 0x40 || low == 0x7f || 0xfc < low) + if (! SJIS_ISMB_TRAIL(low)) return ONIGERR_INVALID_CODE_POINT_VALUE; return 2; } |