mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix bad integer promotion in mysqlnd big5 charset detection
This commit is contained in:
parent
62f64141ef
commit
df4dd82ea0
1 changed files with 3 additions and 3 deletions
|
@ -188,9 +188,9 @@ static unsigned int mysqlnd_mbcharlen_utf8(const unsigned int utf8)
|
|||
|
||||
|
||||
/* {{{ big5 functions */
|
||||
#define valid_big5head(c) (0xA1 <= (unsigned int)(c) && (unsigned int)(c) <= 0xF9)
|
||||
#define valid_big5tail(c) ((0x40 <= (unsigned int)(c) && (unsigned int)(c) <= 0x7E) || \
|
||||
(0xA1 <= (unsigned int)(c) && (unsigned int)(c) <= 0xFE))
|
||||
#define valid_big5head(c) (0xA1 <= (zend_uchar)(c) && (zend_uchar)(c) <= 0xF9)
|
||||
#define valid_big5tail(c) ((0x40 <= (zend_uchar)(c) && (zend_uchar)(c) <= 0x7E) || \
|
||||
(0xA1 <= (zend_uchar)(c) && (zend_uchar)(c) <= 0xFE))
|
||||
|
||||
#define isbig5code(c,d) (isbig5head(c) && isbig5tail(d))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue