[PATCH] boolean in constant expressions done right
commit9ac75b297a95af5fb7c7554b1dc2bfe4fca6d7b3
authorAlexander Viro <viro@www.linux.org.uk>
Sat, 24 Jul 2004 05:35:41 +0000 (23 22:35 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Apr 2005 04:02:17 +0000 (7 21:02 -0700)
treecb4504a790e16775e4c21e95e6145be897114a4d
parent5b1132531e902676c9872ffc2ab80ee3aac40aab
[PATCH] boolean in constant expressions done right

x && y is x ? (y != 0) : 0, not x ? y : 0.  simplify_logical() ended up
with e.g. 2 && 2 being simplified to 2, which is not a good idea.
expand.c