Re: Recent changes (master)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux