[LyX/2.4.x] Fix compilation with msvc 2019

Jean-Marc Lasgouttes lasgouttes at lyx.org
Mon Apr 8 09:12:26 UTC 2024


commit 25f11742036f762aa1a83d377bc416a519bca6ef
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.
    
    (cherry picked from commit c7f53afd319fc9028be74f8949cec00063972462)
---
 src/Text.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Text.cpp b/src/Text.cpp
index d5a1069fa1..778c41820e 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