>From 996e88bba1d96d4ee76efd533602476cc9d1391b Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 23 Sep 2026 13:05:45 +0000 Subject: [PATCH 18/25] regex: fix a bad int type choice in regcomp code_min,code_max values are always used as int with type casts. (casts are not removed to avoid patch conflicts) on 64bit this is also a minor memory use improvement. --- src/regex/regcomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c index c541e2fd..be5fa595 100644 --- a/src/regex/regcomp.c +++ b/src/regex/regcomp.c @@ -99,8 +99,8 @@ typedef struct { tags, matching parameter settings, and all expressions that match one character. */ typedef struct { - long code_min; - long code_max; + int code_min; + int code_max; int position; tre_ctype_t class; tre_ctype_t *neg_classes; -- 2.52.0