diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-12-28 18:48:57 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-12-28 18:48:57 -0800 |
commit | 4e51bcca230af7c8e1bda92a3801fb0c8c3b2179 (patch) | |
tree | 04b447dfc1b925b56fabf7965919fef073e181fe /pp.c | |
parent | 067b79294b4fa85c62e4aaf8dd31ab20cc4d2d61 (diff) | |
download | perl-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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. */ |