mirror of https://github.com/lammps/lammps.git
use parenthesis to correct precedence
This commit is contained in:
parent
17d59a4342
commit
e6a8f3c8c0
|
@ -420,7 +420,7 @@ TEST(Utils, unit_conversion)
|
|||
flag = utils::get_supported_conversions(utils::ENERGY);
|
||||
ASSERT_EQ(flag, utils::METAL2REAL | utils::REAL2METAL);
|
||||
|
||||
factor = utils::get_conversion_factor(utils::UNKNOWN, 1 << 30 - 1);
|
||||
factor = utils::get_conversion_factor(utils::UNKNOWN, (1 << 30) - 1);
|
||||
ASSERT_DOUBLE_EQ(factor, 0.0);
|
||||
factor = utils::get_conversion_factor(utils::UNKNOWN, utils::NOCONVERT);
|
||||
ASSERT_DOUBLE_EQ(factor, 0.0);
|
||||
|
|
Loading…
Reference in New Issue