]> granicus.if.org Git - php/commitdiff
Fix range
authorAndrey Hristov <andrey@php.net>
Tue, 10 May 2011 07:15:22 +0000 (07:15 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 10 May 2011 07:15:22 +0000 (07:15 +0000)
(thanks again nihen)

ext/mysqlnd/mysqlnd_charset.c

index 9074baeca06cc96155ac5817362c2e18fdba4f6f..6792229d10ca2ed6a5c099494791ad60722a809b 100644 (file)
@@ -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)