This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix EXTEND changes under STRESS_REALLOC
authorSteffen Mueller <smueller@cpan.org>
Wed, 28 May 2014 12:11:40 +0000 (14:11 +0200)
committerSteffen Mueller <smueller@cpan.org>
Wed, 28 May 2014 12:12:00 +0000 (14:12 +0200)
As part of aad79b331c21c962b6e0ce7b8027aa625d7445ec, -DSTRESS_REALLOC was broken.
This should alleviate that.

pp.h

diff --git a/pp.h b/pp.h
index 09d8bb1..3aff1a1 100644 (file)
--- a/pp.h
+++ b/pp.h
@@ -274,11 +274,11 @@ Does not use C<TARG>.  See also C<XPUSHu>, C<mPUSHu> and C<PUSHu>.
 # define EXTEND(p,n)   STMT_START {                                     \
                            sp = stack_grow(sp,p,(SSize_t) (n));         \
                            PERL_UNUSED_VAR(sp);                         \
-                       } STMT_END
+                       } STMT_END
 /* Same thing, but update mark register too. */
 # define MEXTEND(p,n)   STMT_START {                                    \
                             const int markoff = mark - PL_stack_base;   \
-                            sp = stack_grow(sp,p,(SSize_t) (n)));       \
+                            sp = stack_grow(sp,p,(SSize_t) (n))       \
                             mark = PL_stack_base + markoff;             \
                             PERL_UNUSED_VAR(sp);                        \
                         } STMT_END