[LyX/master] Fix compilation with msvc 2019
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Sun Apr 7 18:43:09 UTC 2024
commit c7f53afd319fc9028be74f8949cec00063972462
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Sun Apr 7 20:41:13 2024 +0200
Fix compilation with msvc 2019
'uint' is not defined, 'unsigned int' is better.
---
src/Text.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Text.cpp b/src/Text.cpp
index 4749f36d2c..1f9696de0d 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -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;
More information about the lyx-cvs
mailing list