-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Am 2015-12-27 um 10:23 schrieb Aaryaman Vasishta:
> + if (info_header.biWidth % 4 != 0)
> + expected = (info_header.biWidth & ~0x03) + 4;
> + else
> + expected = info_header.biWidth;
This is more complicated than it needs to be:
expected = (info_header.biWidth + 3) & ~3
should work as well.