Fix warning

This was:
../../master/src/mathed/InsetMathBox.cpp:116:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string<wchar_t> >::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<std::__cxx11::basic_string<wchar_t> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
This commit is contained in:
Jean-Marc Lasgouttes 2023-01-09 16:06:38 +01:00
parent f608328059
commit 6093e7d661

View File

@ -113,7 +113,7 @@ void splitAndWrapInMText(MathMLStream & ms, MathData const & cell,
// Finally, output the complete inset: escape the test in <m:mtext>, leave // Finally, output the complete inset: escape the test in <m:mtext>, leave
// the other tags untouched. // the other tags untouched.
ms << MTag("mrow", attributes); 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") ms << MTag("mtext")
<< parts[i] << parts[i]
<< ETag("mtext"); << ETag("mtext");