possible bug in charset.h

Jeremy Allison jra at samba.org
Sat Jan 19 14:36:12 GMT 2002


On Sat, Jan 19, 2002 at 10:57:02PM +0100, andreas moroder wrote:
> Hello,
> 
> in charset.h from line 57 on #define toupper(c) (upper_char_map[(c&0xff)] & 
> 0xff) to line 66  the macro parameter is used without parenthesis. 
> 
> If a expression is passed as parameter to toupper(), then the macro fails.

Good catch - keep 'em coming.

Jeremy.




More information about the samba-technical mailing list