summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorLarry Wall <lwall@netlabs.com>1995-03-13 15:55:18 -0800
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1995-03-15 12:25:31 +1300
commite9a444f0e2e25089238ff153c447ef9ed7d3f72c (patch)
treeff81c5562235acb456edc79efe9993889f184717 /toke.c
parentb355b4e0798f66a89bbfedc23cbec69c1dff3d33 (diff)
downloadperl-e9a444f0e2e25089238ff153c447ef9ed7d3f72c.tar.gz
cleaner version of the official unofficial patch
: There were some warnings (AIX, xlc compiler): Here's a cleaner version of the official unofficial patch, based on 5.001.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 99d0e6182c..783974e89e 100644
--- a/toke.c
+++ b/toke.c
@@ -4633,6 +4633,9 @@ start_subparse()
CV* outsidecv = compcv;
AV* comppadlist;
+ if (compcv) {
+ assert(SvTYPE(compcv) == SVt_PVCV);
+ }
save_I32(&subline);
save_item(subname);
SAVEINT(padix);
@@ -4665,7 +4668,7 @@ start_subparse()
av_store(comppadlist, 1, SvREFCNT_inc((SV*)comppad));
CvPADLIST(compcv) = comppadlist;
- CvOUTSIDE(compcv) = outsidecv;
+ CvOUTSIDE(compcv) = (CV*)SvREFCNT_inc((SV*)outsidecv);
return oldsavestack_ix;
}