]> git.lyx.org Git - features.git/commitdiff
Fix compiler warning -Wstring-plus-int
authorScott Kostyshak <skostysh@lyx.org>
Thu, 29 Dec 2022 21:25:42 +0000 (16:25 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 29 Dec 2022 21:25:42 +0000 (16:25 -0500)
Similar to d44eaa97.

src/tex2lyx/math.cpp

index 0e347987937afcc449ef1441446f7a8fdafb9e24..616b61609026c8b66f988fd61212b8412da51728 100644 (file)
@@ -92,7 +92,7 @@ void parse_math(Parser & p, ostream & os, unsigned flags, const mode_type mode)
                        }
 
                        else {
-                               warning_message("\nmode: " + mode);
+                               warning_message("\nmode: " + std::to_string(mode));
                                p.error("something strange in the parser\n");
                                break;
                        }