From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: Recent changes (master) References: <20160808120002.427E02C00A2@kernel.dk> <415126992.423440.1470663079681.JavaMail.zimbra@redhat.com> From: Jens Axboe Message-ID: Date: Mon, 8 Aug 2016 07:47:23 -0600 MIME-Version: 1.0 In-Reply-To: <415126992.423440.1470663079681.JavaMail.zimbra@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: Erwan Velu Cc: fio@vger.kernel.org List-ID: On 08/08/2016 07:31 AM, Erwan Velu wrote: > Hey Jens, > > Isn't that dangerous to sum many unsigned integers into a signed int ? > Couldn't this trigger overflows ? > + sum += io_u_plat[j + k]; It'd probably be more appropriate to have it be an unsigned long at least, then we could kill the cast as well when we print it. -- Jens Axboe