This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Correct the size calculations for FIT_ARENA for SVt_REGEXP.
[perl5.git] / sv.c
diff --git a/sv.c b/sv.c
index 4918449..77bb1b5 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -948,7 +948,7 @@ static const struct body_details bodies_by_type[] = {
       sizeof(regexp),
       0,
       SVt_REGEXP, FALSE, NONV, HASARENA,
-      FIT_ARENA(0, sizeof(regexp) - STRUCT_OFFSET(regexp, xpv_cur))
+      FIT_ARENA(0, sizeof(regexp))
     },
 
     /* 48 */