Correct the size calculations for FIT_ARENA for SVt_REGEXP.
authorNicholas Clark <nick@ccl4.org>
Fri, 20 Aug 2010 09:44:40 +0000 (10:44 +0100)
committerNicholas Clark <nick@ccl4.org>
Fri, 20 Aug 2010 16:34:39 +0000 (17:34 +0100)
This should have been done as part of commit 601dfd0af0604fa7. Its omission
did not cause bugs; it merely resulted in slightly less effective arena sizing.

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 */