diff options
author | Larry Wall <lwall@netlabs.com> | 1995-03-13 15:55:18 -0800 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1995-03-15 12:25:31 +1300 |
commit | e9a444f0e2e25089238ff153c447ef9ed7d3f72c (patch) | |
tree | ff81c5562235acb456edc79efe9993889f184717 /toke.c | |
parent | b355b4e0798f66a89bbfedc23cbec69c1dff3d33 (diff) | |
download | perl-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } |