]> git.lyx.org Git - features.git/commitdiff
Fix a warning related to comparing different signedness
authorThibaut Cuvelier <tcuvelier@lyx.org>
Thu, 1 Sep 2022 08:57:04 +0000 (10:57 +0200)
committerThibaut Cuvelier <tcuvelier@lyx.org>
Thu, 1 Sep 2022 08:57:04 +0000 (10:57 +0200)
src/insets/InsetIndex.cpp

index b4a143eadbaf6119688392ffd219c6a93f89d8ec..94bfa13315f133ef0d500e99473c4d07777ac6a0 100644 (file)
@@ -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;