Alexey Dobriyan
5f3f24faf3
[ATM] ambassador,firestream: "-1 >>" is implementation defined
...
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.
[ Modified to use ~0U based upon recommendation from Al Viro. -DaveM ]
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-12-02 21:22:25 -08:00
..
2006-02-26 20:15:58 +01:00
2006-10-04 00:31:04 -07:00
2006-12-02 21:22:25 -08:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-11-29 16:16:41 -08:00
2006-10-05 15:10:12 +01:00
2005-04-16 15:20:36 -07:00
2006-12-02 21:22:25 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-05 15:10:12 +01:00
2006-06-30 19:25:36 +02:00
2006-10-05 15:10:12 +01:00
2005-04-24 18:55:35 -07:00
2006-10-24 16:16:39 -07:00
2006-06-30 19:25:36 +02:00
2006-06-29 16:58:12 -07:00
2006-06-29 16:58:12 -07:00
2005-04-16 15:20:36 -07:00
2006-10-05 15:10:12 +01:00
2005-04-16 15:20:36 -07:00
2006-11-30 05:24:39 +01:00
2006-06-30 19:25:36 +02:00
2006-07-08 13:30:09 -07:00
2006-10-06 15:00:58 -04:00
2005-11-29 16:17:11 -08:00
2005-04-16 15:20:36 -07:00
2006-10-21 19:55:25 -07:00
2005-08-29 15:31:14 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-06-29 16:58:17 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-05 15:10:12 +01:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00