From 8d080364d27590464d4073700548d9fab11c6823 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 15 Sep 2019 23:57:57 +0200 Subject: [PATCH] Clarify calculation precedence for '&' and '?' Spotted by cppcheck --- src/mathed/MathParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp index ee60353046..9c2db23bd9 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); } -- 2.39.2