<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 9, 2018 at 9:44 PM, Keith Packard <span dir="ltr"><<a href="mailto:keithp@keithp.com" target="_blank">keithp@keithp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><a href="mailto:behdad@kemper.freedesktop.org">behdad@kemper.freedesktop.org</a> (Behdad Esfahbod) writes:<br>
<br>
>     Fix undefined-behavior signed shifts<br>
<br>
How is left shift of signed values undefined?<span class="gmail-HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>1<<0x1F is 2147483648 which is not representable in int32_t. No? At least that's my understanding of what the compiler was nagging about.<br></div></div></div></div>