diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-21 07:11:41 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-21 07:11:41 +0000 |
commit | bf38a47800bc41fab1987dd3c1dc9b5405a51b66 (patch) | |
tree | 7ec16636bebecd1b123d99c04449edf8497ee719 /pp_ctl.c | |
parent | ae423868f0b6096a2e2c476339cbdb24c6f2b3de (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |