From 4feb6aaea95670caa5b1292a0f618c2c8777343a Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sat, 2 Apr 2022 17:01:02 +0200 Subject: [PATCH] Make clang happy Omitting 'error: comparison of integer expressions of different signedness' --- src/lyxfind.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 53058ddace..be11b16e9a 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++; } -- 2.39.2