From 0678333e684b55ba8877db1f865692713dacafc0 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Mon, 9 Jan 2023 21:09:29 +0100 Subject: regcomp.c - increase size of CURLY nodes so the min/max is a I32 This allows us to resolve a test inconsistency between CURLYX and CURLY and CURLYM, which have different maximums. We use I32 and not U32 because the existing count logic uses -1 internally and using an I32 for the min/max prevents warnings about comparing signed and unsigned values when the count is compared against the min or max. --- regcomp_internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'regcomp_internal.h') diff --git a/regcomp_internal.h b/regcomp_internal.h index c2fb323c05..3ba4667bf3 100644 --- a/regcomp_internal.h +++ b/regcomp_internal.h @@ -1251,5 +1251,7 @@ static const scan_data_t zero_scan_data = { CLEAR_OPTSTART; \ node = dumpuntil(r,start,(b),(e),last,sv,indent+1,depth+1); +#define REGNODE_STEP_OVER(ret,t1,t2) \ + NEXT_OFF(REGNODE_p(ret)) = ((sizeof(t1)+sizeof(t2))/sizeof(regnode)) #endif /* REGCOMP_INTERNAL_H */ -- cgit v1.2.1