Re: cvs: php-src /ext/standard url.c
| From: | Moriyoshi Koizumi | Date: | Wed, 03 Dec 2003 23:33:36 +0000 |
| Subject: | Re: cvs: php-src /ext/standard url.c | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-24886@lists.php.net to get a copy of this message | ||
On 2003/12/04, at 8:35, Ilia Alshanetsky wrote:
On December 3, 2003 06:21 pm, Moriyoshi Koizumi wrote:Although it's not a compiler issue and the casts look ugly, I want to ask those who'll use functions like them to use unsigned char variables in the first place. I've ever spotted numerous mistakes all over the code. That's why I hope they will leave there as my warnings. Moriyoshi p.s. (int)((char)-1) yields -1, rather than 255 of cource.Any reason to remove them? Passing a char-typed value to is*() or to*() is basically wrong.Compiler does not have a problem with that and we've already established it won't change anything since 'digits' are always lower then then 128-255 range the cast protects.