diff options
| author | Andrey Hristov <andrey@php.net> | 2011-05-09 16:20:35 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2011-05-09 16:20:35 +0000 |
| commit | d4ae5bd9955cbbd80fd9e70d4e6b36004e39fc2c (patch) | |
| tree | 056ab45d771b417b28c1297e18fbd1316b52cacb /ext/mysqlnd/mysqlnd_charset.c | |
| parent | 410a781063aaa3ab55e59d19ed354d20e0d827ff (diff) | |
| download | php-git-d4ae5bd9955cbbd80fd9e70d4e6b36004e39fc2c.tar.gz | |
Fix for bug 54674..typo in the check of SJIS
Diffstat (limited to 'ext/mysqlnd/mysqlnd_charset.c')
| -rw-r--r-- | ext/mysqlnd/mysqlnd_charset.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/mysqlnd/mysqlnd_charset.c b/ext/mysqlnd/mysqlnd_charset.c index 18208f215d..9074baeca0 100644 --- a/ext/mysqlnd/mysqlnd_charset.c +++ b/ext/mysqlnd/mysqlnd_charset.c @@ -327,10 +327,8 @@ 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_head(c) ((0x81 <= (c) && (c) <= 0x9F) || (0xE0 <= (c) && (c) <= 0xFC)) +#define valid_sjis_tail(c) ((0x40 <= (c) && (c) <= 0x7E) || (0x80 <= (c) && (c) <= 0x7C)) static unsigned int check_mb_sjis(const char *start, const char *end) |
