On Mon, Nov 13, 2006 at 11:22:00PM +0300, Alexey Dobriyan wrote: > 6.5.7(5): The result of E1 >> E2 is E1 right-shifted E2 bit positions. > ... > If E1 has a signed type and a negative value, the resulting value > is implementation defined. > > So, cast -1 to unsigned type to make result well-defined.
Or just use ~0U and be done with that. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html