Source-Changes archive

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

Re: CVS commit: src/common/lib/libc/string



On Wed, Jan 09, 2008 at 02:03:40PM +0100, Martin Husemann wrote:
> On Wed, Jan 09, 2008 at 09:59:27AM +0200, Alan Barrett wrote:
> > Wouldn't casts have had the same effect?  e.g.:
> > 
> >     if (*p == (unsigned char)c) ...
> 
> Probably - any reason you'd prefer it? I suppose there will not be any 
> difference in the generated code (but did not actually try).

I think this is more readable especially because it makes it clear that
it is temporary.

Joerg



Home | Main Index | Thread Index | Old Index