commit 4feb6aaea95670caa5b1292a0f618c2c8777343a
Author: Kornel Benko <[email protected]>
Date: Sat Apr 2 17:01:02 2022 +0200
Make clang happy
Omitting 'error: comparison of integer expressions of different signedness'
---
src/lyxfind.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index 53058dd..be11b16 100644
--- a/src/lyxfind.cpp
+++ b/src/lyxfind.cpp
@@ -3863,7 +3863,7 @@ string MatchStringAdv::normalize(docstring const & s,
bool ignore_format) const
t = t.substr(1);
// Remove [%]*\n at end
while (!t.empty() && t[t.size() - 1] == '\n') {
- int count = 1;
+ size_t count = 1;
if (!ignore_format) {
while ((t.size() > 1 + count) && (t[t.size() - 1 -
count] == '%'))
count++;
@@ -3892,7 +3892,7 @@ string MatchStringAdv::normalize(docstring const & s,
bool ignore_format) const
t.replace(pos, 1, " ");
}
if (!ignore_format) {
- int count = 0;
+ size_t count = 0;
while ((pos > count + 1) && (t[pos - 1 -count]
== '%')) {
count++;
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs