[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190227.093452.479784888345024964.davem@davemloft.net>
Date: Wed, 27 Feb 2019 09:34:52 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: andriy.shevchenko@...ux.intel.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH v1] net: dev: Use unsigned integer as an argument to
left-shift
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Date: Wed, 27 Feb 2019 13:37:26 +0300
> 1 << 31 is Undefined Behaviour according to the C standard.
> Use U type modifier to avoid theoretical overflow.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Applied, thanks Andy.
Powered by blists - more mailing lists