From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH] ipvs: use explicitly signed chars Date: Wed, 2 Nov 2022 09:26:52 +0100 Message-ID: References: <20221026123216.1575440-1-Jason@zx2c4.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20221026123216.1575440-1-Jason@zx2c4.com> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Jason A. Donenfeld" Cc: netdev@vger.kernel.org, lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Julian Anastasov , Simon Horman , stable@vger.kernel.org On Wed, Oct 26, 2022 at 02:32:16PM +0200, Jason A. Donenfeld wrote: > The `char` type with no explicit sign is sometimes signed and sometimes > unsigned. This code will break on platforms such as arm, where char is > unsigned. So mark it here as explicitly signed, so that the > todrop_counter decrement and subsequent comparison is correct. Applied, thanks