summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-12-28 17:39:08 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-12-28 17:44:14 -0800
commit8c78ed36c11ca887f0722d091505f55726e46da8 (patch)
tree4d3217edf30aff44daa2c5e901ff45053db3024c /pp.c
parentae642386ccef430ebb2286180b93648551226d7d (diff)
downloadperl-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pp.c b/pp.c
index fbc32a226f..a0c29cd7e3 100644
--- a/pp.c
+++ b/pp.c
@@ -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;
}
}