summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-21 07:11:41 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-21 07:11:41 +0000
commitbf38a47800bc41fab1987dd3c1dc9b5405a51b66 (patch)
tree7ec16636bebecd1b123d99c04449edf8497ee719 /pp_ctl.c
parentae423868f0b6096a2e2c476339cbdb24c6f2b3de (diff)
downloadperl-bf38a47800bc41fab1987dd3c1dc9b5405a51b66.tar.gz
Change the hasargs return value from caller from IV to bool, as it's
actually only a boolean, and sv_yes/sv_no are cheaper to "create". The documentation says 'C<$hasargs> is true if ...' so this is fine. p4raw-id: //depot/perl@33019
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index c1f115d965..25cd02f2cb 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -1654,11 +1654,11 @@ PP(pp_caller)
SV * const sv = newSV(0);
gv_efullname3(sv, cvgv, NULL);
mPUSHs(sv);
- mPUSHi((I32)CxHASARGS(cx));
+ PUSHs(boolSV(CxHASARGS(cx)));
}
else {
PUSHs(newSVpvs_flags("(unknown)", SVs_TEMP));
- mPUSHi((I32)CxHASARGS(cx));
+ PUSHs(boolSV(CxHASARGS(cx)));
}
}
else {