diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-01-03 21:17:28 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-01-03 21:17:28 +0000 |
commit | 0006dff7adcb1858f940afa807baf82db5c4b082 (patch) | |
tree | 89812e6359f2638b281b1a0020948b9014330cf3 /xsutils.c | |
parent | d277572a6346d5f51f7cc9aef51be155e4b63a19 (diff) | |
download | perl-0006dff7adcb1858f940afa807baf82db5c4b082.tar.gz |
Return an immortal from attributes::_warn_reserved (a private
function). (saves creating a new IV)
p4raw-id: //depot/perl@23736
Diffstat (limited to 'xsutils.c')
-rw-r--r-- | xsutils.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -315,7 +315,6 @@ usage: XS(XS_attributes__warn_reserved) { dXSARGS; - dXSTARG; if (items != 0) { Perl_croak(aTHX_ @@ -323,9 +322,7 @@ XS(XS_attributes__warn_reserved) } EXTEND(SP,1); - ST(0) = TARG; - sv_setiv(TARG, ckWARN(WARN_RESERVED) != 0); - SvSETMAGIC(TARG); + ST(0) = boolSV(ckWARN(WARN_RESERVED)); XSRETURN(1); } |