From 229bdc7ccb4f1ef684172cfa5d7fb78eda8cd469 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Tue, 10 May 2011 07:15:22 +0000 Subject: Fix range (thanks again nihen) --- ext/mysqlnd/mysqlnd_charset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mysqlnd/mysqlnd_charset.c') diff --git a/ext/mysqlnd/mysqlnd_charset.c b/ext/mysqlnd/mysqlnd_charset.c index a75861ccae..6c8e7a5cc1 100644 --- a/ext/mysqlnd/mysqlnd_charset.c +++ b/ext/mysqlnd/mysqlnd_charset.c @@ -327,7 +327,7 @@ static unsigned int mysqlnd_mbcharlen_gbk(unsigned int gbk) /* {{{ functions */ #define valid_sjis_head(c) ((0x81 <= (c) && (c) <= 0x9F) || (0xE0 <= (c) && (c) <= 0xFC)) -#define valid_sjis_tail(c) ((0x40 <= (c) && (c) <= 0x7E) || (0x80 <= (c) && (c) <= 0x7C)) +#define valid_sjis_tail(c) ((0x40 <= (c) && (c) <= 0x7E) || (0x80 <= (c) && (c) <= 0xFC)) static unsigned int check_mb_sjis(const char *start, const char *end) -- cgit v1.2.1