From 6093e7d6615088ce25fe296ecd82ba8f867452fc Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 9 Jan 2023 16:06:38 +0100 Subject: [PATCH] Fix warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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] --- src/mathed/InsetMathBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.39.5