Re: [PATCH 3/3] src: Use 1U for bit shifting

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

 



On Mon, 2021-06-14 at 13:06 +0200, Michal Privoznik wrote:
> In a few places we take 1 and shift it left repeatedly. So much
> that it won't longer fit into signed integer. The problem is that
> this is undefined behaviour. Switching to 1U makes us stay within
> boundaries.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

Reviewed-by: Tim Wiederhake <twiederh@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux