commit 8d080364d27590464d4073700548d9fab11c6823
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Sun Sep 15 23:57:57 2019 +0200
Clarify calculation precedence for '&' and '?'
Spotted by cppcheck
---
src/mathed/MathParser.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp
index ee60353..9c2db23 100644
--- a/src/mathed/MathParser.cpp
+++ b/src/mathed/MathParser.cpp
@@ -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);
}