Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libc/gen



On Thu, 17 Apr 2008, David Laight wrote:
> On Thu, Apr 17, 2008 at 04:24:40PM +0000, Alan Barrett wrote:
> > 
> > * Use toupper((int)(unsigned char)*s)) instead of just
> >   toupper((unsigned char)*s) in an example.
> 
> Why is the (int) cast needed.
> The code is ugly enough without it.

It's not necessary for correctness, but some people have reported that
it quiets compiler warnings in some cases.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index