Re: [PATCH] avoid negative shifts in radix-tree.c, take 2

2007-08-29 Thread Andreas Schwab
Peter Lund <[EMAIL PROTECTED]> writes: > Shifting by more than the width of the value on the left is also not allowed. Shifting by the width of the value is not allowed as well. > --- linux-2.6.22/lib/radix-tree.c.orig2007-08-27 15:42:37.0 > +0200 > +++ linux-2.6.22/lib/radix-tr

[PATCH] avoid negative shifts in radix-tree.c, take 2

2007-08-29 Thread Peter Lund
From: Peter Lund <[EMAIL PROTECTED]> Negative shifts are not allowed in C (the result is undefined). It works on most platforms but not on the VAX with gcc 4.0.1 (it results in an "operand reserved" fault). Applies to Linux 2.6.22. Signed-off-by: Peter Lund <[EMAIL PROTECTED]> --- Shifting by m