summaryrefslogtreecommitdiff
path: root/xsutils.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-01-03 21:17:28 +0000
committerNicholas Clark <nick@ccl4.org>2005-01-03 21:17:28 +0000
commit0006dff7adcb1858f940afa807baf82db5c4b082 (patch)
tree89812e6359f2638b281b1a0020948b9014330cf3 /xsutils.c
parentd277572a6346d5f51f7cc9aef51be155e4b63a19 (diff)
downloadperl-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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/xsutils.c b/xsutils.c
index f8527a283c..39bf560756 100644
--- a/xsutils.c
+++ b/xsutils.c
@@ -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);
}