summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTAKAI Kousuke <62541129+t-a-k@users.noreply.github.com>2021-10-08 00:51:55 +0900
committerTony Cook <tony@develop-help.com>2021-12-09 11:05:49 +1100
commit75122876d2e240d7aafe35db62c52dc639af3437 (patch)
tree132ee8a5d3d25c539978847bbc9d23568c17ea12
parentc89cba650a81c8118313ab1b813547628863854d (diff)
downloadperl-75122876d2e240d7aafe35db62c52dc639af3437.tar.gz
Replace SvUV_nomg(sv) with SvUVX(sv) in pp_abs.
Under the conditions SvIOK(sv) and SvIsUV(sv), SvUV_nomg(sv) is equivalent to SvUVX(sv). This change will eliminate unreachable code and may save a few dozen bytes of code size.
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 8376168354..f6734aec4a 100644
--- a/pp.c
+++ b/pp.c
@@ -3040,7 +3040,7 @@ PP(pp_abs)
else if (SvIOK(sv)) {
/* IVX is precise */
if (SvIsUV(sv)) {
- SETu(SvUV_nomg(sv)); /* force it to be numeric only */
+ SETu(SvUVX(sv)); /* force it to be numeric only */
} else {
if (iv >= 0) {
SETi(iv);