diff options
author | Andrey Hristov <andrey@php.net> | 2011-05-10 07:15:22 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2011-05-10 07:15:22 +0000 |
commit | 9a197618b4ad2305cc884abe80ab7ded5fb22fd8 (patch) | |
tree | f7ea46fedcb9949a9bf3865c251702bf8758686d | |
parent | 9d2f7c1e3e64e5c8af69695ecb6a004a72ff79a2 (diff) | |
download | php-git-9a197618b4ad2305cc884abe80ab7ded5fb22fd8.tar.gz |
Fix range
(thanks again nihen)
-rw-r--r-- | ext/mysqlnd/mysqlnd_charset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_charset.c b/ext/mysqlnd/mysqlnd_charset.c index 9074baeca0..6792229d10 100644 --- a/ext/mysqlnd/mysqlnd_charset.c +++ b/ext/mysqlnd/mysqlnd_charset.c @@ -328,7 +328,7 @@ static unsigned int mysqlnd_mbcharlen_gbk(unsigned int gbk) /* {{{ sjis 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) |