Messages in this thread | | | Subject | Re: drivers/char/sysrq.c | From | Valdis.Kletnieks@vt ... | Date | Fri, 30 May 2003 23:18:12 -0400 |
| |
On Fri, 30 May 2003 18:11:49 +0200, margitsw@t-online.de (Margit Schubert-While) said: > I wonder if there are other places where "&" (or "|") is coded and > "&&" (or "||") is meant (or vice-versa) where the result is NOT semantically > the same :-) > It'll take a good checker to sort that one!
It shouldn't be hard at all to deal with the form:
(A compare B) op (C compare D)
The scary part would be if the right-hand size has a side-effect - then the choice of |, & over ||, && would definitely be bug-inducing (or possibly bug-fixing)? [unhandled content-type:application/pgp-signature] | |