]> git.lyx.org Git - features.git/commit
Use << for raising 2 to power instead of ^
authorScott Kostyshak <skostysh@lyx.org>
Sat, 28 Mar 2020 16:19:11 +0000 (12:19 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 28 Mar 2020 23:18:21 +0000 (19:18 -0400)
commit8f3c95f7570f84effc4601e88f13ff48c6084f0c
treee1d4a8006b48687c0f8f1f4b8013b79e7aa29da2
parent104fdcc9be40df19d50cddad7f8ae9ab63bbf5f7
Use << for raising 2 to power instead of ^

The ^ is interpretted as bitwise XOR, so 2^(20) evaluated to 22.

Thanks to Riki for the << trick. This way, we do not have to use
pow() and include the <cmath> header for this one expression.
src/graphics/PreviewLoader.cpp