From: Jiri Kosina Subject: Re: [PATCH v1] HID: core: don't use negative operands when shift Date: Tue, 13 Jun 2017 14:29:54 +0200 (CEST) Message-ID: References: <20170613092222.4073-1-andriy.shevchenko@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mx2.suse.de ([195.135.220.15]:45343 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752608AbdFMM36 (ORCPT ); Tue, 13 Jun 2017 08:29:58 -0400 In-Reply-To: <20170613092222.4073-1-andriy.shevchenko@linux.intel.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Andy Shevchenko Cc: Benjamin Tissoires , linux-input@vger.kernel.org, Andy Shevchenko On Tue, 13 Jun 2017, Andy Shevchenko wrote: > From: Andy Shevchenko > > The recent C standard in 6.5.7 paragraph 4 defines that operands for > bitwise shift operators should be non-negative, otherwise it's an > undefined behaviour. > > Signed-off-by: Andy Shevchenko Applied, thanks. -- Jiri Kosina SUSE Labs