diff options
author | Yves Orton <demerphq@gmail.com> | 2023-01-09 21:09:29 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-01-15 17:21:12 +0100 |
commit | 0678333e684b55ba8877db1f865692713dacafc0 (patch) | |
tree | fe5f8a44e747465599ce5209581cae3f215e9283 /regcomp_internal.h | |
parent | 5c6240fadac873b60c46677b4d5b180f4fb6074b (diff) | |
download | perl-0678333e684b55ba8877db1f865692713dacafc0.tar.gz |
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.
Diffstat (limited to 'regcomp_internal.h')
-rw-r--r-- | regcomp_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |