summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Mai <lukasmai.403@gmail.com>2023-03-14 10:18:17 +0100
committerYves Orton <demerphq@gmail.com>2023-03-14 20:05:29 +0800
commitde3d2945055fb7119a5ed4225e53b6a09d1d2feb (patch)
tree9db7de0b40e7c84f6064eade928149c48e2bae87
parent60c52570a7183b5ef77f5fdc6ba270c7560fe4d6 (diff)
downloadperl-de3d2945055fb7119a5ed4225e53b6a09d1d2feb.tar.gz
regcomp.c: use ARG1u_LOC macro to access field
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index fa4d3ddf83..50f9e6bb6e 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -11927,7 +11927,7 @@ S_optimize_regclass(pTHX_
&& *anyof_flags == 0
&& start[0] < (1 << ANYOFR_BASE_BITS)
&& end[0] - start[0]
- < ((1U << (sizeof(((struct regnode_1 *)NULL)->arg1u)
+ < ((1U << (sizeof(ARG1u_LOC(NULL))
* CHARBITS - ANYOFR_BASE_BITS))))
{