diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-12-28 17:39:08 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-12-28 17:44:14 -0800 |
commit | 8c78ed36c11ca887f0722d091505f55726e46da8 (patch) | |
tree | 4d3217edf30aff44daa2c5e901ff45053db3024c /pp.c | |
parent | ae642386ccef430ebb2286180b93648551226d7d (diff) | |
download | perl-8c78ed36c11ca887f0722d091505f55726e46da8.tar.gz |
pp.c:pp_sin: Less stack fiddling
No need to pop and push. No need to extend the stack. No need for
PUTBACK with those changes, as we no longer maniputale the stack
pointer (and even when we did it always ended up with the same value).
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2700,7 +2700,7 @@ PP(pp_sin) tryAMAGICun_MG(amg_type, 0); { - SV * const arg = POPs; + SV * const arg = TOPs; const NV value = SvNV_nomg(arg); NV result = NV_NAN; if (neg_report) { /* log or sqrt */ @@ -2722,8 +2722,8 @@ PP(pp_sin) case OP_LOG: result = Perl_log(value); break; case OP_SQRT: result = Perl_sqrt(value); break; } - XPUSHn(result); - RETURN; + SETn(result); + return NORMAL; } } |