commit 70a939636c276e0b935d0a9cd80427fdc5d30fa0
Author: Thibaut Cuvelier <[email protected]>
Date:   Thu Jul 17 05:57:44 2025 +0200

    Fix a compilation warning.
    
    The code was narrowing a `long long` (`pos_type`) into an `int`.
---
 src/Paragraph.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 9a01582a79..7c84cad554 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -3769,7 +3769,7 @@ std::tuple<std::vector<docstring>, 
std::vector<docstring>, std::vector<docstring
 
                // Determine which tags should be opened or closed regarding 
fonts. Consider the last output character (i.e. not
                // deleted).
-               int last_output_char = (i == 0) ? 0 : i - 1;
+               pos_type last_output_char = (i == 0) ? 0 : i - 1;
                if (i > 0) {
                        while (last_output_char > 0 && 
isDeleted(last_output_char))
                                --last_output_char;
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to