commit c88f331a06f73c3e394af4e0a71bb023df2bb94b
Author: Stephan Witt <[email protected]>
Date:   Mon Aug 17 12:22:13 2020 +0200

    Avoid a type mismatch warning resp. error for signed vs unsigned typed 
values comparison
---
 src/mathed/InsetMathGrid.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp
index 26dd55f..ef6b265 100644
--- a/src/mathed/InsetMathGrid.cpp
+++ b/src/mathed/InsetMathGrid.cpp
@@ -1634,8 +1634,8 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest 
& cmd)
                        for (row_type r = 0; r < numrows; ++r) {
                                for (col_type c = 0; c < numcols; ++c) {
                                        idx_type i = index(r + startrow, c + 
startcol);
-                                       pos_type ipos = uint(cur.pos()) > 
cell(i).size()
-                                                       ? cell(i).size()
+                                       pos_type ipos = cur.pos() > 
pos_type(cell(i).size())
+                                                       ? 
pos_type(cell(i).size())
                                                        : cur.pos();
                                        cell(i).insert(ipos, 
grid.cell(grid.index(r, c)));
                                }
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to