diff options
author | Xinchen Hui <laruence@php.net> | 2011-08-24 10:15:47 +0000 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2011-08-24 10:15:47 +0000 |
commit | d4a50542ead041f0fb73d337b414700b24231c9e (patch) | |
tree | 7c4f1041a1df00adc24f5b67124dc97fa31c8aa0 /ext/mysqlnd/mysqlnd_charset.c | |
parent | 3d5385dda5f442f82cba0fb1ccceafb25642ad72 (diff) | |
download | php-git-d4a50542ead041f0fb73d337b414700b24231c9e.tar.gz |
Eliminated compile warning "comparison is always false due to limited range of data type"
Fixed test failed due to mysql_pconnect throw warning
Fixed test failed when host mysql server doesn't listen on 3306
Diffstat (limited to 'ext/mysqlnd/mysqlnd_charset.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_charset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqlnd/mysqlnd_charset.c b/ext/mysqlnd/mysqlnd_charset.c index 6792229d10..a87b2a1f4f 100644 --- a/ext/mysqlnd/mysqlnd_charset.c +++ b/ext/mysqlnd/mysqlnd_charset.c @@ -126,8 +126,8 @@ static unsigned int check_mb_utf8_sequence(const char *start, const char *end) if (!((start[1] ^ 0x80) < 0x40 && (start[2] ^ 0x80) < 0x40 && (start[3] ^ 0x80) < 0x40 && - (c >= 0xf1 || start[1] >= 0x90) && - (c <= 0xf3 || start[1] <= 0x8F))) + (c >= 0xf1 || start[1] >= (char)0x90) && + (c <= 0xf3 || start[1] <= (char)0x8F))) { return 0; /* invalid utf8 character */ } |