summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-12-28 18:48:57 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-12-28 18:48:57 -0800
commit4e51bcca230af7c8e1bda92a3801fb0c8c3b2179 (patch)
tree04b447dfc1b925b56fabf7965919fef073e181fe /pp.c
parent067b79294b4fa85c62e4aaf8dd31ab20cc4d2d61 (diff)
downloadperl-4e51bcca230af7c8e1bda92a3801fb0c8c3b2179.tar.gz
pp.c:pp_oct: Less stack fiddling
No need for pop and push, since we accept and return one item. No need to extend the stack. No need for PUTBACK.
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pp.c b/pp.c
index 71252f988c..47dcb12185 100644
--- a/pp.c
+++ b/pp.c
@@ -2911,7 +2911,7 @@ PP(pp_oct)
STRLEN len;
NV result_nv;
UV result_uv;
- SV* const sv = POPs;
+ SV* const sv = TOPs;
tmps = (SvPV_const(sv, len));
if (DO_UTF8(sv)) {
@@ -2940,12 +2940,12 @@ PP(pp_oct)
result_uv = grok_oct (tmps, &len, &flags, &result_nv);
if (flags & PERL_SCAN_GREATER_THAN_UV_MAX) {
- XPUSHn(result_nv);
+ SETn(result_nv);
}
else {
- XPUSHu(result_uv);
+ SETu(result_uv);
}
- RETURN;
+ return NORMAL;
}
/* String stuff. */