]> 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)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:55 +0000 (15:48 +0200)
commit61893d6158861298ff101f14abe4d9cb127c6677
tree57128bf079c76b8385b06a40b8c18753d26d7935
parent0e69ecdaf032820b146736c479c2cea465a37dbf
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