[gtksourceview] regex: fix comparison for assertions
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] regex: fix comparison for assertions
- Date: Tue, 6 Jul 2021 20:51:33 +0000 (UTC)
commit 533a264357e8cd69a772c56e9644df029c14f17e
Author: Christian Hergert <chergert redhat com>
Date: Tue Jul 6 13:51:18 2021 -0700
regex: fix comparison for assertions
Fallout from #199
gtksourceview/implregex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/implregex.c b/gtksourceview/implregex.c
index e8dcbe01..7cb9a18a 100644
--- a/gtksourceview/implregex.c
+++ b/gtksourceview/implregex.c
@@ -1105,7 +1105,7 @@ impl_match_info_next (ImplMatchInfo *match_info,
match_info->pos = match_info->offsets[1];
}
- g_assert (match_info->matches <= match_info->n_subpatterns + 1);
+ g_assert (match_info->matches <= (int)match_info->n_subpatterns + 1);
/* it's possible to get two identical matches when we are matching
* empty strings, for instance if the pattern is "(?=[A-Z0-9])" and
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]