]> git.lyx.org Git - lyx.git/commitdiff
Fix compilation with msvc 2019
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 7 Apr 2024 18:41:13 +0000 (20:41 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 7 Apr 2024 18:43:00 +0000 (20:43 +0200)
'uint' is not defined, 'unsigned int' is better.

src/Text.cpp

index 4749f36d2c25f2b3dadb2a9f0fa3642f3ab38acf..1f9696de0db4b82f691e41d04e8294a4a3f84cca 100644 (file)
@@ -5958,7 +5958,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                // Argument?
                if (!arg.empty()) {
                        if (isStrUnsignedInt(arg)) {
-                               num = convert<uint>(arg);
+                               num = convert<unsigned int>(arg);
                                if (num >= freeFonts.size()) {
                                        cur.message(_("Invalid argument (number exceeds stack size)!"));
                                        break;