[LyX features/features/indexmacros] Fix a warning related to comparing different signedness
Thibaut Cuvelier
tcuvelier at lyx.org
Thu Sep 1 08:09:00 UTC 2022
The branch, features/indexmacros, has been updated.
- Log -----------------------------------------------------------------
commit 5e87cfbf4c0e64f15f0a26c4ac5a29236b1eb962
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date: Thu Sep 1 10:57:04 2022 +0200
Fix a warning related to comparing different signedness
diff --git a/src/insets/InsetIndex.cpp b/src/insets/InsetIndex.cpp
index b4a143e..94bfa13 100644
--- a/src/insets/InsetIndex.cpp
+++ b/src/insets/InsetIndex.cpp
@@ -1476,7 +1476,7 @@ bool operator<(IndexEntry const & lhs, IndexEntry const & rhs)
if (lhs.terms_.empty())
return false;
- for (int i = 0; i < min(rhs.terms_.size(), lhs.terms_.size()); ++i) {
+ for (unsigned i = 0; i < min(rhs.terms_.size(), lhs.terms_.size()); ++i) {
int comp = compare_no_case(lhs.terms_[i], rhs.terms_[i]);
if (comp != 0)
return comp < 0;
-----------------------------------------------------------------------
Summary of changes:
src/insets/InsetIndex.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
Repository for new features
More information about the lyx-cvs
mailing list