]> git.lyx.org Git - features.git/commitdiff
Clarify calculation precedence for '&' and '?'
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 15 Sep 2019 21:57:57 +0000 (23:57 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 15 Sep 2019 21:57:57 +0000 (23:57 +0200)
Spotted by cppcheck

src/mathed/MathParser.cpp

index ee6035304690cea0962d4147c8aaa62e75da4d56..9c2db23bd9d507c1ea252aa3f8e21d905232d72f 100644 (file)
@@ -2166,7 +2166,7 @@ bool mathed_parse_cell(MathData & ar, docstring const & str, Parse::flags f)
 
 bool mathed_parse_cell(MathData & ar, istream & is, Parse::flags f)
 {
-       return Parser(is, f, ar.buffer()).parse(ar, 0, f & Parse::TEXTMODE ?
+       return Parser(is, f, ar.buffer()).parse(ar, 0, (f & Parse::TEXTMODE) ?
                                InsetMath::TEXT_MODE : InsetMath::MATH_MODE);
 }