From: Jean-Marc Lasgouttes Date: Mon, 9 Jan 2023 15:06:38 +0000 (+0100) Subject: Fix warning X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6093e7d6615088ce25fe296ecd82ba8f867452fc;p=features.git Fix warning This was: ../../master/src/mathed/InsetMathBox.cpp:116:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 116 | for (int i = 0; i < parts.size(); i += 2) { | ~~^~~~~~~~~~~~~~ ../../master/src/mathed/InsetMathBox.cpp:120:20: warning: comparison of integer expressions of different signedness: ‘std::vector >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] --- diff --git a/src/mathed/InsetMathBox.cpp b/src/mathed/InsetMathBox.cpp index 1fe3f20f32..afaadeb83a 100644 --- a/src/mathed/InsetMathBox.cpp +++ b/src/mathed/InsetMathBox.cpp @@ -113,7 +113,7 @@ void splitAndWrapInMText(MathMLStream & ms, MathData const & cell, // Finally, output the complete inset: escape the test in , leave // the other tags untouched. ms << MTag("mrow", attributes); - for (int i = 0; i < parts.size(); i += 2) { + for (std::size_t i = 0; i < parts.size(); i += 2) { ms << MTag("mtext") << parts[i] << ETag("mtext");