<div dir="ltr"><span>On Fri, Jan 1, 2016 at 6:39 PM, Stefan Dösinger <span dir="ltr"><<a href="mailto:stefandoesinger@gmail.com" target="_blank">stefandoesinger@gmail.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">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<span><br>
Am 2015-12-27 um 10:23 schrieb Aaryaman Vasishta:<br>
> +        if (info_header.biWidth % 4 != 0)<br>
> +            expected = (info_header.biWidth & ~0x03) + 4;<br>
> +        else<br>
> +            expected = info_header.biWidth;<br>
</span>This is more complicated than it needs to be:<br>
<br>
expected = (info_header.biWidth + 3) & ~3<br>
<br>
should work as well.<br></blockquote></span><div>Much better solution :) <br><br></div><div>I've sent try 6 with the changes.<br><br></div><div>Cheers,<br></div>Aaryaman</div>