lkml.org 
[lkml]   [2003]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH][TRIVIAL] Bugzilla bug # 322 - double logical operator drivers/char/sx.c
From
Date
On Wed, 06 Aug 2003 21:26:30 EDT, Jeff Sipek said:

> > Can you really DO (x < y > z) and have it work as an anded pair of
> > comparisons? Maybe this is an addition to C that I am not aware of.
> >
> > I would expect (x < y > z) to be equivalent to ((x < y) > z).
>
> Ah, very true. I wonder what the author intended. Also, since the 'z' is 0 in
> all the cases, the statement "(i < TIMEOUT) > 0" can be reduced to "i <
> TIMEOUT".

Of course, if the author intended (x<y) && (x > 0), you can't reduce it if
x is at all possibly negative....
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.058 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site