<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 17, 2014 at 11:33 AM, Alexey Samsonov <span dir="ltr"><<a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Mon, Sep 15, 2014 at 2:51 PM, Nick Kledzik <span dir="ltr"><<a href="mailto:kledzik@apple.com" target="_blank">kledzik@apple.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+    Value |= (-1LL) << Shift;<br></blockquote><div><br></div></div></div><div>^^</div><div>UBSan marks left shifts of negative values as undefined behavior. I've changed this to -1ULL in r217974.</div></div></div></div></blockquote><div><br></div><div>Is -1ULL really an unsigned integer literal? I thought you had to use something like ~0ULL if you want an unsigned all ones literal.</div></div></div></div>