Richard Levitte - VMS Whacker wrote:
In message <[EMAIL PROTECTED]> on Tue, 28 Jun 2005 15:27:53 +0200 (CEST), "Ben 
Laurie" <[EMAIL PROTECTED]> said:

ben>   Log:
ben>     Did you know it was wrong to use a char as an array index?

It isn't if you know what you're doing.  However, when things like
isspace() are implemented using an array, you will get surprising
results if you feed it a signed char with the high bit set.

No less surprising than feeding it an int implicitly cast from a signed char.

Anyway, the compiler doesn't care whether you know what you are doing. It gives a warning.

Cheers,

Ben.

--
>>>ApacheCon Europe<<<                   http://www.apachecon.com/

http://www.apache-ssl.org/ben.html       http://www.thebunker.net/

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to