This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee33cc1
)
scope.c: Appease C++
author
Father Chrysostomos
<sprout@cpan.org>
Fri, 12 Aug 2016 15:43:39 +0000
(08:43 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Fri, 12 Aug 2016 15:43:39 +0000
(08:43 -0700)
C++ is dumb.
scope.c
patch
|
blob
|
blame
|
history
diff --git
a/scope.c
b/scope.c
index
d78857b
..
ff84e64
100644
(file)
--- a/
scope.c
+++ b/
scope.c
@@
-1116,8
+1116,10
@@
Perl_leave_scope(pTHX_ I32 base)
case SAVEt_CLEARPADRANGE:
{
- I32 i = (I32)((uv >> SAVE_TIGHT_SHIFT) & OPpPADRANGE_COUNTMASK);
- SV **svp = &PL_curpad[uv >>
+ I32 i;
+ SV **svp;
+ i = (I32)((uv >> SAVE_TIGHT_SHIFT) & OPpPADRANGE_COUNTMASK);
+ svp = &PL_curpad[uv >>
(OPpPADRANGE_COUNTSHIFT + SAVE_TIGHT_SHIFT)] + i - 1;
goto clearsv;
case SAVEt_CLEARSV: